Statistical Procedures

Programming the statistical procedures from SAS
BookmarkSubscribeRSS Feed
haoduonge
Quartz | Level 8

Hi all,

Output from [proc glm] includes [estimate and standard error], can we get standard deviation instead?

Thanks!

Hao

 

https://communities.sas.com/t5/ODS-and-Base-Reporting/output-tables-from-proc-glm/m-p/239152 

8 REPLIES 8
PaigeMiller
Diamond | Level 26

Standard deviation of what?

--
Paige Miller
haoduonge
Quartz | Level 8

Standard deviation of the estimate (continuous variable).

PaigeMiller
Diamond | Level 26

Ok, estimate of what??



--
Paige Miller
haoduonge
Quartz | Level 8

Below is the example:

Proc glm data=temp1;

class age_group(ref=first);

model BMI=age_group/solution E3;

run; 

Thanks!

PaigeMiller
Diamond | Level 26

This GLM model produces a lot of estimates. Which one are you referring to?

--
Paige Miller
haoduonge
Quartz | Level 8

I think only one estimate (parameter), the value below intercept.

 

PaigeMiller
Diamond | Level 26

So to make the example concrete, let's go with 

 

proc glm data=sashelp.class;
    class sex;
    model height=sex/solution;
    means sex;
run;
quit;

this produces

 

PaigeMiller_0-1652816877689.png

and so you want the standard deviation of the estimate -3.3211111 for Sex F.

 

As far as I understand things, there is no standard deviation of this estimate. In fact, I don't even think it makes sense to talk about a standard deviation of this estimate. The Standard Error of 2.2862... gives you a measure of how variable this estimate is. 

 

So, under the usual assumptions for PROC GLM (errors are iid normal), this estimate has a normal distribtuion with mean of -3.3211111 and a standard deviation — which is equal to the standard error — of 2.2862 ...). Is that what you want?

--
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!

What is ANOVA?

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.

Discussion stats
  • 8 replies
  • 2344 views
  • 1 like
  • 2 in conversation