Programming the statistical procedures from SAS

How to see the p values from the PROC GLM for LSD,dunnet for

Reply
Regular Contributor
Posts: 187

How to see the p values from the PROC GLM for LSD,dunnet for

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?

Respected Advisor
Posts: 3,773

Re: How to see the p values from the PROC GLM for LSD,dunnet for

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.

Regular Contributor
Posts: 187

Re: How to see the p values from the PROC GLM for LSD,dunnet for

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.

Respected Advisor
Posts: 3,773

Re: How to see the p values from the PROC GLM for LSD,dunnet for

Why not use LSMEANS maybe that will give you what you want.

Regular Contributor
Posts: 187

Re: How to see the p values from the PROC GLM for LSD,dunnet for

LSMEANS doesnt have the LSD option.

Respected Advisor
Posts: 3,773

Re: How to see the p values from the PROC GLM for LSD,dunnet for

Isn't LSD the same as ADJUST=T with LINES.  And said you want p-values.

Regular Contributor
Posts: 187

Re: How to see the p values from the PROC GLM for LSD,dunnet for

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.

Respected Advisor
Posts: 3,773

Re: How to see the p values from the PROC GLM for LSD,dunnet for

Look a PDIFF option pdiff=control('Control') adjust=dunnet

it's all in the online help.

Ask a Question
Discussion stats
  • 7 replies
  • 509 views
  • 0 likes
  • 2 in conversation