Programming the statistical procedures from SAS

How do I combine descriptive statistics (mean, sd, median, min, max) in PROC MIANALYZE?

Reply
Learner
Posts: 1

How do I combine descriptive statistics (mean, sd, median, min, max) in PROC MIANALYZE?

Hi,

 

After using PROC MI I want to analyse my imputed datasets descriptively. I used PROC UNIVARIATE to generate descriptive statistics (n, mean, sd, median, min, max). To analyze this within PROC MIANALYZE I need the standard errors of the parameters, but unfortunately this is not so easy for all other statistics than the mean.

 

Is there another way to combine the descriptive statistics within PROC MIANALYZE or can I do it in another simple way? (Below the code for the mean.)

 

Thanks in advance

Tina

 

proc univariate data = miout;

  by _imputation_;

  var VISIT1 -- VISIT4 ;

  output out = uniout mean = VISIT1 VISIT2 VISIT3 VISIT4

                     stderr = SVISIT1 SVISIT2 SVISIT3 SVISIT4

                     min=minVISIT1 minVISIT2 minVISIT3 minVISIT4

                     max=maxVISIT1 maxVISIT2 maxVISIT3 maxVISIT4

                     median=medVISIT1 medVISIT2 medVISIT3 medVISIT4

                     std=StdVISIT1 StdVISIT2 StdVISIT3 StdVISIT4;

run;

 

proc mianalyze data = uniout;

  modeleffects VISIT1 VISIT2 VISIT3 VISIT4;

  stderr SVISIT1 SVISIT2 SVISIT3 SVISIT4;

run;

 

Ask a Question
Discussion stats
  • 0 replies
  • 90 views
  • 0 likes
  • 1 in conversation