SAS Programming

DATA Step, Macro, Functions and more
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-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!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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