Dear members of the list,
I'm running a random slope multilevel logistic regression to assess a possible moderator effect of income inequality (country-level) on the effect of father's education on university graduation. Individual data is nested into countries, and university graduation ('univ') is my dependent variable
In my model, there is a number of level-1 (L1) variables and one level-2 variable (L2). As I said before, I am particularly interested in testing if the L2 variable (Gini coefficient) moderates the effect of father's education on the probability of attaining university graduation. The variable 'cntryid6_group' identifies the country, my second level in my analysis
This is a equivalent to a cross-level interaction (see in the following lines). I implicitly assume that the model should be specified as a model with random slopes for L1 variable, but I am not sure of the correct syntax to use. In particular, I am not sure of the need to add the R Laplacian operator before the name of the variable whose random coefficient I want to estimate.
Option 1:
Option 2:
I have searched hard for information but I have not got a clear idea answer to my doubt. When is it appropriate to introduce this R Laplacian operator before the variable whose random-coefficient is estimated?. In my case, this variable is 'edufath', which is a categorical one (three categories) and captures father's education.
Thanks a lot for your attention and your help
Kind regards
Luis Ortiz
I'm running a random slope multilevel logistic regression to assess a possible moderator effect of income inequality (country-level) on the effect of father's education on university graduation. Individual data is nested into countries, and university graduation ('univ') is my dependent variable
In my model, there is a number of level-1 (L1) variables and one level-2 variable (L2). As I said before, I am particularly interested in testing if the L2 variable (Gini coefficient) moderates the effect of father's education on the probability of attaining university graduation. The variable 'cntryid6_group' identifies the country, my second level in my analysis
This is a equivalent to a cross-level interaction (see in the following lines). I implicitly assume that the model should be specified as a model with random slopes for L1 variable, but I am not sure of the correct syntax to use. In particular, I am not sure of the need to add the R Laplacian operator before the name of the variable whose random coefficient I want to estimate.
Option 1:
HTML Code:
xtmelogit univ i.edufath##c.GINI female age || cntryid6_group: edufath
Option 2:
HTML Code:
xtmelogit univ i.edufath##c.GINI female age || cntryid6_group: R.edufath
Thanks a lot for your attention and your help
Kind regards
Luis Ortiz
Comment