

Decomposing xvariables for categoric... 

Message/Author 

Student 09 posted on Saturday, October 03, 2009  3:18 pm



Hi in a twolevel model with a binary dependent variable y1 and a continuous predictor x1  which I would like to decompose in its within and betweengroup regression coeffcients  I received the following error message: Unrestricted xvariables in TWOLEVEL analysis with ALGORITHM=INTEGRATION be specified as either a WITHIN or BETWEEN variable. The following variable cannot exist on both levels: x_1 Are there any alternatives to circumvent this restriction? I don't like to specify x_1 either/or as within/between given that its betweenvariance is large and I am looking for contextual effects? 


It sounds like you have specified a random slope, in which case the x variable is not decomposed. See UG ex 9.2. This is exactly like in regular multilevel modeling. It does not mean that x does not have betweenlevel variation. If you don't have a random slope, send your input, output, data and license number to support@statmodel.com. You can enter as a betweenlevel version of x its cluster mean. There are also possibilities for a latent variable decomposition. 

Back to top 

