Discussion:
How to suppress the proc ttest output?
(too old to reply)
ST
2009-10-15 02:59:38 UTC
Permalink
Hi there,

I have a simple question!

I want to run proc ttest several thousands times and get the p values. It is
easy to get the values using ODS, but how to suppress the output in the .lst
file? It seems there is no 'noprint' option for proc ttest.

Thanks in advance,

Hu
Mike Zdeb
2009-10-15 13:21:40 UTC
Permalink
hi ...

ods listing close;
ods output ttests=pvals;

proc ttest data=sashelp.class;
class sex;
var weight height;
run;

ods output close;
ods listing;


proc print data=pvals;
run;

--
Mike Zdeb
***@Albany School of Public Health
One University Place
Rensselaer, New York 12144-3456
P/518-402-6479 F/630-604-1475
Post by ST
Hi there,
I have a simple question!
I want to run proc ttest several thousands times and get the p values. It is
easy to get the values using ODS, but how to suppress the output in the .lst
file? It seems there is no 'noprint' option for proc ttest.
Thanks in advance,
Hu
Steve Denham
2009-10-15 18:07:37 UTC
Permalink
Try

ods listing close;

<code here>

ods listing;

proc print...
Steve Denham
Associate Director, Biostatistics
MPI Research, Inc.



----- Original Message ----
From: ST <***@GMAIL.COM>
To: SAS-***@LISTSERV.UGA.EDU
Sent: Wed, October 14, 2009 10:59:38 PM
Subject: How to suppress the proc ttest output?

Hi there,

I have a simple question!

I want to run proc ttest several thousands times and get the p values. It is
easy to get the values using ODS, but how to suppress the output in the .lst
file? It seems there is no 'noprint' option for proc ttest.

Thanks in advance,

Hu
m***@gmail.com
2013-05-23 09:59:00 UTC
Permalink
Post by Mike Zdeb
Try
ods listing close;
<code here>
ods listing;
proc print...
Steve Denham
Associate Director, Biostatistics
MPI Research, Inc.
----- Original Message ----
Sent: Wed, October 14, 2009 10:59:38 PM
Subject: How to suppress the proc ttest output?
Hi there,
I have a simple question!
I want to run proc ttest several thousands times and get the p values. It is
easy to get the values using ODS, but how to suppress the output in the .lst
file? It seems there is no 'noprint' option for proc ttest.
Thanks in advance,
Hu
This is a great tip. Thanks

Loading...