Message/Author |
|
Matt M posted on Friday, March 20, 2015 - 11:41 am
|
|
|
I'm in the process of constructing a multilevel model regression model. I've assessed the individual level data in SPSS. A quadratic regression at level one accounts for more variance than linear regression. However the data is clustered (as evidenced by large ICC, and, >2 design effect). Therefore I'd like to test a multilevel quadratic relationship in Mplus. It seems like a simple issue, but I'm not finding anything online or in the forum regarding defining quadratic relationships in Mplus. Any suggestions? |
|
|
Use Define: xsq = x*x; and add the xsq variable to the USEV list. |
|
|
Hello. We’ve been using the syntax provided in Example 9.16 in the Mplus 7 manual in order to estimate a two level longitudinal model with data clustered within person. We are interested in adding a quadratic term to the script, but were unsure how to do so. Is there a way to do so using the 9.16 syntax? If not, do you recommend using a different Example from the manual? Thank you in advance for your assistance with this. |
|
|
You can create a time squared variable using the DEFINE command. Then use it in a second random slope statement. |
|
|
Hi Linda, Thank you for your response. When I tried this, I received the following error message: *** ERROR in VARIABLE command TYPE=TWOLEVEL requires specification for the CLUSTER option. Any idea how to correct this? Thank you. |
|
|
You have to tell Mplus what the cluster variable is: Cluster = x; where x is your cluster variable. |
|
|
Thank you, Bengt. In our script, we'd previously specified IDVARIABLE = person when converting our data file from wide to long. We then specified Cluster = person. This seemed to work fine until we tried to add the quadratic term. Is there a different approach that you suggest for specifying the cluster variable now? |
|
|
Please send the output and your license number to support@statmodel.com. Changing the model should not affect the cluster variable. |
|
Back to top |