BookmarkSubscribeRSS Feed
djakub
Calcite | Level 5

Hello, 

 

I was handed a past research project that never got finished and keep getting differences in treatment means with the code I am using. It's been a while since I have used SAS and done statistics. My differences seem to be in the model statement. I cannot remember what the "P=" is supposed to mean but my differences seem to be resulting from that as my data and model is exactly the same except that one statement has P=0.61 and the other has P=0.9361. This is probably a dumb question but I am having a hard time remembering. Could anyone clarify this for me?

proc mixed;

class trt rep pvt year;

model iw=trt year; *trt*year (P=0.61);

random pvt;

lsmeans trt year /pdiff;

run;.

 

proc mixed;

class trt rep pvt year;

model ibw=trt year; *trt*year (P=0.9361);

random pvt;

lsmeans trt year /pdiff;

run;

 

1 REPLY 1
PaigeMiller
Diamond | Level 26

It would be more meaningful if you showed us a screen capture of the two outputs from SAS. You have shown us p-values, but we don't know what test the p-values are for.

 

In general, when the p-value is large than some threshold (often 0.05, but other thresholds can be used) then you do not have a statistical difference between the treatment means; or in other words, you accept the hypothesis of no difference.

--
Paige Miller

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 328 views
  • 0 likes
  • 2 in conversation