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?
You could change the title from
SAS: Obtain Counts and Percentages for Categorical Variables from Imputed Data
proc mianalyze: Counts and Percentages for Categorical Variables from Imputed Data
to increase your chances of being helped
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.
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.