Message/Author 

Jon Elhai posted on Friday, June 20, 2008  9:06 am



Is there a way for Mplus to provide descriptive statistics for categorical variables? Specifically, I'm wondering if there's a way to provide basic frequencies (percentage endorsements of the outcome categories) and crosstabs of frequencies between two variables. 


Univariate frequencies are given as part of SAMPSTAT or TYPE=BASIC. Bivariate frequencies are not given. 


Is there a way for Mplus to run descriptive statistics with weighted data (cluster, stratification, & weight)? 


With TYPE=COMPLEX or TYPE=GENERAL, sample statistics are affected only by weights not stratification and clustering. Those affect standard errors only. You can use the WEIGHT option to obtain sample statistics. 

Leslie Roos posted on Sunday, August 18, 2013  10:32 am



Hello, I wanted to ask a followup clarification question regarding descriptive statistics with weighted data. I'm trying to obtain weighted crosstabs percentages based on a complex dataset. I've included the weight, stratification and cluster variable in the input, but the output of crosstabs and frequencies does not appear to be weighted. Is it possible to requested weighted frequencies? 


The crosstabs are not weighted. You can find the weighted information in TECH10. 

Leslie Roos posted on Tuesday, August 20, 2013  2:52 pm



Hi, Thank you for your response  Is this in conjunction with the Crosstabs(All) command? When I request TECH10 I receive no related error message and my output does not change. 


TECH10 includes univariate and bivariate frequency information that is weighted. 

Leslie Roos posted on Tuesday, August 20, 2013  3:33 pm



Hi Linda, Thank you so much for that description of TECH10. Although I can see frequency information that is weighted, the crosstabs appear to be unweighted  Is there any way to have weighted crosstabs (or crosstab frequencies?) 


The crosstabs are not currently weighted. 

Tamara Fitz posted on Monday, February 15, 2016  4:27 am



Dear Prof. Muthen, When I save the data as a .dat type in SPSS and try to run the basic analysis with it, Mplus shows me the warning that there is a invalid symbol in case 1 in the data. As described here i open the data mith Mplus Editor, delete the symbol and save it. Basic analysis is possible now. But when i compare the descriptive results to that from SPSS there are two scales that have exchanged Means (SPSS AB:5,6 CD:3,5; Mplus AB:3,5 CD:5,6) all the other means are identical with SPSS. I dont know how to solve the problem. What could have been gone wrong? 


It sounds like the variable names on the NAMES list are not in the correct order. 

Tamara Fitz posted on Monday, February 15, 2016  7:32 am



Dear Prof. Muthen, thanks again for this very quick and helpful hint. kind regards 


For weighted data, sampstat provides weighted means, variances, and covariances. Where do we find standard errors of the means for weighted data? 


Try Type = Basic 


That's what I'm currently using, I'm sorry that I wasn't clear. The standard errors of the means aren't included in the "estimated sample statistics" section. 


Then try a Model command using WITH for all variables. 

Back to top 