Simulating heteroscedasticity PreviousNext
Mplus Discussion > Structural Equation Modeling >
Message/Author
 David Dueber posted on Friday, February 03, 2017 - 11:00 am
I am trying to do a monte carlo simulation study of a regression model with heteroscedasticity, and cannot figure out how to simulate the heteroscedasticity. When I model heteroscedasticity in Mplus, I do so using the MODEL CONSTRAINT feature, which is unavailable in specifying the model population.

I know that I can use a mixture model to create heteroscedasticity, but would like to more precisely control how the residual variance changes. Is this possible in Mplus?
 Bengt O. Muthen posted on Friday, February 03, 2017 - 5:55 pm
See our new book described on our website. Heteroscedasticity scripts are shown for Chapter 1.
 David Dueber posted on Friday, February 03, 2017 - 6:53 pm
Thank you for your response, I now see that heteroscedasticity can be introduced using a random slopes model.

However, in these models, it seems that the heteroscedasticity is always symmetric (large residual variance at the extremes, low residual variance at the center). Is there a way to simulate a population for the model in ex1.15.inp in which the residual variance is a+bx? Thanks again for your help
 Bengt O. Muthen posted on Saturday, February 04, 2017 - 8:32 am
The random slopes approach doesn't necessarily have large variances at the extremes if one focuses on a certain range of x values relevant for the application. That's how it is applied in Chapter 1 where the variance is low for low x values and high for high x values. This approach provides an easy way to generate heteroscedastic data. I am not sure how data could be generated using the ex1.15 approach; seems like you would have to generate data for each of a set of distinct x values with different residual variance and then combine.
Back to top
Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: