BookmarkSubscribeRSS Feed
mona4u
Lapis Lazuli | Level 10

I have this example and I need to calculate SE, SD  from this available information. 

Can you help me with this? 

 

mona4u_1-1638458206771.png

 

4 REPLIES 4
PaigeMiller
Diamond | Level 26

Let's assume you do the analysis in PROC GLM.

 

The Least Squares Means and their standard errors come from the LSMEANS statement. Example: https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_glm_examples04.htm

 

I believe (but haven't confirmed) that if you use the LINESTABLE option of the LSMEANS statement, you get the differences and the confidence intervals for the differences.

--
Paige Miller
mona4u
Lapis Lazuli | Level 10

I want to calculate it manually as I only have these outputs. 

SteveDenham
Jade | Level 19

Well, with only the information in the table, you won't be able to calculate by hand the SD and SE for each of the groups.  Well, first off, whatever analysis was done assumed homogeneity of variance - you can tell because the standard errors for the lsmeans are identical.  With different N's per group, that implies that the lsmeans are truly marginal means -> expected values of the distributions, rather than the averages for each group.

 

What you could try is to simulate data with these means and standard errors, having say 500 or 1000 samples of 298 and 294 observations each.  Calculate the mean, standard deviation and standard error for each sample. That would be enough to let the Central Limit Theorem give you an accurate approximation if you took the average of each set of samples.

 

SteveDenham

mona4u
Lapis Lazuli | Level 10

I want to calculate the SD and SE diff for both groups. 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 4 replies
  • 827 views
  • 3 likes
  • 3 in conversation