BSEM categorical data PreviousNext
Mplus Discussion > Categorical Data Modeling >
 wayne smith posted on Monday, May 09, 2016 - 2:25 am

I am attempting a BSEM for categorical data with crossloadings for the first time. How do I set priors for this data which is largely skewed?12 items ordinal 0-5 scoring(psych outcome complex items). A CFA fit well with two crossloading items. I attempted to put this in a Bifactor CFA but saw I should not have crossloaders in bifactor CFA so I would like to use BSEM. I followed your examples using '~ N(0.1, 0.01)' for priors but I'm not sure if this is appropriate here.

Gen BY I01-I12*; Gen@1;

f1 BY I01* I03 I06 I08;
f2 BY I02* I07 I08;
f3 BY I04* I05 I10;
f4 BY I09* I10 I11 I12;

Gen WITH f1-f4@0;

f1 BY I02 I04 I05 I07 I09 I10 I11 I12*0 (ax1-ax8);

f2 BY I01 I03 I04 I05 I06 I09 I10 I11 I12*0(bx9-bx17);

f3 BY I01 I02 I03 I06 I07 I08 I09 I11 I12*0 (cx18-cx26);

f4 BY 01-I08*0 (dx27-dx34);

ax1-dx34 ~N(0,0.01);


Is the N(0,0.01) an OK choice here? Or considering item 8 and item 10 crossload 0.3 and 0.5 resp should I use an alternative?

Many thanks
 Bengt O. Muthen posted on Tuesday, May 10, 2016 - 6:49 pm
Yes, that prior is an ok choice. Large cross-loadings will show up as significant estimates and you can then free them if you want. But try some other variance values as well (smaller and larger) and see how it affects results.
 wayne smith posted on Wednesday, May 11, 2016 - 9:05 am
Thank you for your help.
 Mayara Monteiro posted on Tuesday, July 16, 2019 - 3:41 am

I am trying to estimate a BSEM (Small cross-loadings and covariances) having categorical variables as indicators (5 or 6 point - likert scale), but I am having some questions:

1. From the codes available, it seems that we need to standardize the categorical variables that are indicators of the latent variables and not to declare these categorical variables as categorical. Could you clarify on the effects of the standardization for the model? Should we interpret the parameters results the same way we do when we do not standardize the variables?

2. About the choice of informative priors for residual variances, how is it done when we have categorical variables? The formula to find Sigma (prior for variance) is still valid in this case (Sigma = v*(2p+3)) or Sigma must be 1? If the formula is valid, how do you get the residual variance matrix items (v) for the indicators having categorical data in the ML estimation? Is this why we need to standardize the variables?

I would like to thank you in advance, because these clarifications will help me a lot.
 Tihomir Asparouhov posted on Wednesday, July 17, 2019 - 11:18 am
I wouldn't recommend standardizing. Here is an example of doing BSEM with categorical data

NAMES ARE u1-u6;
analysis: estimator=bayes;
f1 BY u1-u3;
f2 BY u4-u6;
u1-u6 with u1-u6 (p1-p15);
f2 by u1-u3 (c1-c3);
f1 by u4-u6 (c4-c6);
model prior:

Start with values 10000 and 0.0001 and then gradually widen the priors until you get good PPP (so the next values to try would be 0.001 and 1000).
 Mayara Monteiro posted on Thursday, July 25, 2019 - 4:28 am
Dear Tihomir Asparouhov,

Thank you for clarifying about the standardization and for the example.

In the example, you include priors for covariances (u1-u6 with u1-u6), but how should I proceed to define priors for the variances (u1-u6)? The examples that I have seen of applied BSEM approach include the definition of specific priors for the variances.

Thank you!
 Tihomir Asparouhov posted on Thursday, July 25, 2019 - 8:42 am
No. The variances of U are always fixed to one. You are essentially giving a correlation matrix prior. That correlation matrix prior is the marginal distribution of the IW prior specified above complemented by
Thus what Mplus does is uses the variance covariance IW prior marginalized to the correlation matrix and essentially Mplus takes care of the variances here automatically.
 Mayara Monteiro posted on Thursday, July 25, 2019 - 2:06 pm
Thank you very much for clarifying it.
Back to top
Add Your Message Here
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Options: Enable HTML code in message
Automatically activate URLs in message