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.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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