Hi. I am using LSD method in GLM for ttest for 5 comparisons. Then I am using Dunnett option with it.
I want to show the difference of P values for simple T test and with Dunnett adjustment.
How can I do that. As output only show the significance being 1/0. I want to see the p values as well.
Suggestions?
I suggest you look at the documentation for the statement you used to generate the means. I don't know if you used LSMEANS or MEANS but you do and you can decide which part of the documentation you should review.
I used the MEANS statement. And in the online link of SAS. there is no such option as displaying or getting their p values. Some of links suggested to use OUTSTAT in GLM, but that don't give the P values of comparisons, only overall.
Why not use LSMEANS maybe that will give you what you want.
LSMEANS doesnt have the LSD option.
Isn't LSD the same as ADJUST=T with LINES. And said you want p-values.
Yes, I need to compare P values of T with and without DUNNETT method. Where do I specify the control option in DUNNETT. in ttest its like DUNNETT('Control'). in LSMEANS, its ADJUST=DUNNETT, but i can't find where to put the control.
Look a PDIFF option pdiff=control('Control') adjust=dunnet
it's all in the online help.
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!
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.