BookmarkSubscribeRSS Feed
3 REPLIES 3
Jiaoo
Calcite | Level 5

Hello, there. I am a sas beginner. My quesion is that I want to do the sensitive analysis, to compare the demographic difference between the analyzed dataset and the multiple imputation  dataset. How can I solve it?Thank you very much for your help.

Rick_SAS
SAS Super FREQ

You don't say how you want to compare the two data sets, but let's assume you want to run univariate descriptive statistics on the numeric variables. Then you would run the following steps and compare the output:

 

proc means data=Orig_data;
   var _numeric_;
run;

proc means data=Imputed_data;
   var _numeric_;
run;

You could also see how the pairwise correlations compare:

/* by default, PROC CORR computes pairwise correlations */
proc corr data=Orig_data plots=none noprob;
   var _numeric_ ;
run;

proc corr data=Imputed_data plots=none noprob;
   var _numeric_ ;
run;

If you want to compare the data in a different way, please include sample data and specify how you want to compare the variables.

 

Jiaoo
Calcite | Level 5

Dear friend,

Really appreciate your help. That is pretty helpful.

If possible,can I ask more?  I want to compare, e.g, if the age or sex variables are statistically different between the original dataset and the imputed dataset. 

Firstly the original data and the imputed data was combined into one dataset. 

data combined;

set original imputed;

run;

 

Next,  the  statement of below was used, 

Proc freq data= combined;
Table sex* group / CHISQ EXPECTED DEVIATION NOROW NOCOL NOPERCENT;
run; 

 

Is my method correct?

Thank you very much for your time in advance.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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