plotting cross level interaction as per LEMMA mod 7
Posted: Mon Sep 12, 2016 4:43 am
Hi,
I'm fitting a 2 level random intercept logistic model with a cross level interaction term. I've recently started using runmlwin instead of MLwin and am having trouble replicating the graphical depiction of this as per module 7 (pg 52 on). When attempting the command predict predprob, fixed only
stata reports it can't find my explanatory variables.
I'm wondering if this is because I am using the i.var command for each of my explantory variables (they are all categorical except for my single continuous level 2 explanatory variable) and then how I best get around this (without creating dummy variables for all of my explanatory variables, which have done for my cross level interaction terms).
for eg educat =no school cert, school cert, diploma, university
and is reported by stata post MLwin as _1b_educat _2_educat _3_educat etc
and the error comes back as
variable _1b_educat not found
Thanks so much
Danielle
I'm fitting a 2 level random intercept logistic model with a cross level interaction term. I've recently started using runmlwin instead of MLwin and am having trouble replicating the graphical depiction of this as per module 7 (pg 52 on). When attempting the command predict predprob, fixed only
stata reports it can't find my explanatory variables.
I'm wondering if this is because I am using the i.var command for each of my explantory variables (they are all categorical except for my single continuous level 2 explanatory variable) and then how I best get around this (without creating dummy variables for all of my explanatory variables, which have done for my cross level interaction terms).
for eg educat =no school cert, school cert, diploma, university
and is reported by stata post MLwin as _1b_educat _2_educat _3_educat etc
and the error comes back as
variable _1b_educat not found
Thanks so much
Danielle