Statistical Procedures

Programming the statistical procedures from SAS
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
L_L
Calcite | Level 5 L_L
Calcite | Level 5

Dear all

I think Noprint option isn’t allowed with Proc Ttest. How can I use Proc
Ttest without having the output printed?

Thanks in advance for any help.

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

ods exclude all;

proc ttest...

run;

ods exclude none;

View solution in original post

5 REPLIES 5
PaigeMiller
Diamond | Level 26

ods listing select none;

proc ttest ...

...

run;

ods listing select all;

--
Paige Miller
L_L
Calcite | Level 5 L_L
Calcite | Level 5

The proc ttest is inside a Macro.

If I use:

listing select none;

%ttest (DB=ds, STRAT=gender, VAR=age);

The code ends with the error message:

The LISTING destination is not active; no select/exclude lists are available.

maybe because the sas code contain an ods select (who I need to have pvalue to print):

proc ttest data=..;

class ..;

var ...;

ods output equality=equalvar

                  ttest=test;

run;

Thx 



PaigeMiller
Diamond | Level 26

I don't think this has anything to do with macros. That's not the issue.

Try Rick Wicklin's suggestion.

What does this mean "maybe because the sas code contain an ods select (who I need to have pvalue to print):"? If you're going to make statements like this, you need to show us your code.

--
Paige Miller
Rick_SAS
SAS Super FREQ

ods exclude all;

proc ttest...

run;

ods exclude none;

L_L
Calcite | Level 5 L_L
Calcite | Level 5

Yes!

Thank you

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 5 replies
  • 14137 views
  • 1 like
  • 3 in conversation