BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
jojo
Obsidian | Level 7

after proc means procedure by imputation based on 50 imputed dataset, I need to get the pooled results for means, median, q1, q3 from proc mianalyze. Is the following code correct? e.g. use the same standard error for mean, q1, q3.

 

proc mianalyze data= ccc;

by treatment;

modeleffects mean_val q1_val q3_avl;

stderr  std_val std_val std_val;

run;

 

1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User

Nope.

Different quantile have different stderr.

data Orig;   /* restrict to 5000 births; exclude extreme weight gains */
set Sashelp.BWeight(obs=5000 where=(MomWtGain<=40));
run;

title;
ods noproctitle;
ods select  ParameterEstimates;
proc quantreg data=Orig ci=sparsity; 
   model Weight =   / quantile = 0.25 0.5 0.75;
run;

 

 

 

Ksharp_1-1741162825233.png

 

View solution in original post

2 REPLIES 2
Ksharp
Super User

Nope.

Different quantile have different stderr.

data Orig;   /* restrict to 5000 births; exclude extreme weight gains */
set Sashelp.BWeight(obs=5000 where=(MomWtGain<=40));
run;

title;
ods noproctitle;
ods select  ParameterEstimates;
proc quantreg data=Orig ci=sparsity; 
   model Weight =   / quantile = 0.25 0.5 0.75;
run;

 

 

 

Ksharp_1-1741162825233.png

 

jojo
Obsidian | Level 7

Thanks! So I need to use proc quantreg to get the standard error to each quantile and then use proc mianalyze to get the pooled q1 and q3.

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 2 replies
  • 475 views
  • 1 like
  • 2 in conversation