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

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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