BookmarkSubscribeRSS Feed
dee1214
Calcite | Level 5

For my analysis, I have used PROC MI to produce 10 imputed datasets. I am trying to create a participant characteristics table using the imputed datasets. For continuous variables, I was able to use PROC UNIVARIATE and then PROC MIANALYZE to get means and standard deviations. For categorical variables, I was not able to use PROC FREQ and PROC MIANALYZE to get counts and percentages. Here is the code that wrote:

 

proc freq data = imputed_data;
    table GENDER/ out = temp;
    by _IMPUTATION_;
run;

proc mianalyze data = temp;
    modeleffects Count Percent;
run;

Is there something that I am not doing correctly? Is there something else that I should try?

4 REPLIES 4
ChrisNZ
Tourmaline | Level 20

You could change the title from

SAS: Obtain Counts and Percentages for Categorical Variables from Imputed Data

to

proc mianalyze: Counts and Percentages for Categorical Variables from Imputed Data

to increase your chances of being helped

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 Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1694 views
  • 0 likes
  • 3 in conversation