Help using Base SAS procedures

PROC ANOVA not showing means & pairwise comparisons

Reply
Occasional Contributor
Posts: 7

PROC ANOVA not showing means & pairwise comparisons

Hi all! I'm trying to run an ANOVA that models a continuous variable based on a categorical variable. For some reason, the SAS output is not including the means & pairwise comparisons. I know my code is right; I've run it on SAS on a different computer and it gives me all the proper output. It just doesn't seem to be working on my particular machine. Am I missing something? For reference, here's my code:

 

PROC ANOVA DATA = work.file3;
	CLASS DMDEDUC; 
	MODEL CFDRIGHT = DMDEDUC;
	MEANS DMDEDUC / LSD;
RUN;

Thanks!

Trusted Advisor
Posts: 1,909

Re: PROC ANOVA not showing means & pairwise comparisons

Can you show us the SASLOG? Can you show us the output? Can you show us (part of) the data used?

Occasional Contributor
Posts: 7

Re: PROC ANOVA not showing means & pairwise comparisons

Posted in reply to PaigeMiller

Here are screen shots of the SASLOG and all the output. The data was compiled from pieces of the NHANES data set, unfortunately I can't share the dataset since it was compiled by my professor and not myself (this is a class assignment).

Imgur: The most awesome images on the Internet.
Super User
Posts: 11,343

Re: PROC ANOVA not showing means & pairwise comparisons

How did you move the data to the other computer? Am wondering if how you did that may have actually changed any values.

Occasional Contributor
Posts: 7

Re: PROC ANOVA not showing means & pairwise comparisons

This was for a class assignment, I sent my code to a fellow student who had downloaded an identical data set and it ran correctly on her computer.
Super User
Posts: 10,018

Re: PROC ANOVA not showing means & pairwise comparisons

Specify a ANOVA method.



PROC ANOVA DATA = sashelp.class;
	CLASS sex; 
	MODEL weight = sex;
	MEANS sex / TUKEY;
quit;

Occasional Contributor
Posts: 7

Re: PROC ANOVA not showing means & pairwise comparisons

Sorry, my mistake for not specifiying in my original post. I tried using both the LSD and BON methods (this was for a class homework assignment, these are the two the professor suggested we use).  Neither resulted in pairwise comparisons showing.

Super User
Posts: 10,018

Re: PROC ANOVA not showing means & pairwise comparisons

Hey, I saw this in the output.

Is that what you are looking for ?

 

 

Means with the same letter are not significantly different.
t Grouping Mean N Sex
A 108.950 10 M
A      
A 90.111 9 F
Ask a Question
Discussion stats
  • 7 replies
  • 170 views
  • 0 likes
  • 4 in conversation