I want to examine the effect of educational attainment(xvar) on prejudice(yvar) (both 1. level variables) moderatet by current regimetype in the country(xvar) (2. level variable).
I am using the most recent data from the World Value Survey to examine the effects of the interaction, my problem is the following:
In order to assign every country a regimescore I have used the Freedomhouse reports from 2012/13 to generate a new "regimetype" variable, and assigned every observation in the data set with the appropriate score (from 1 to 7). My problem is then: how do i aggregate the scores from each observation, to make it a group level variable? Or is it possible just to run the mixed command like
- mixed prejudice(yvar) c.education(xvar)##c.regimetype(xvar2)||regimetype :
I hope this question makes sense, I am quite new to multilevel analysis.
Related Posts with Multi level modelling cross level analysis
Problem with Gen & string/numeric variable conversionDear forum members, I am new to Stata and having a problem that I can't seem to find a straightforw…
Meta analysis using stata 15How can I test/visualize subgroup difference. I use metan by(subgroup) but I can’t get the differenc…
5*5 bivariate dependent sorting for portfolio creation Code: * Example generated by -dataex-. To install: ssc install dataex clear input str15 companies b…
Prediction interval (not confidence interval) calculations for glm w/ robust VCE model?In reference to the two threads below, did anybody ever figure out how to get prediction intervals/i…
Difficulty with margins: Wald estimate discrepency between ivreg2 and marginsHello, I am trying to estimate the Wald estimand and calculate standard errors using margins and sue…
Subscribe to:
Post Comments (Atom)
0 Response to Multi level modelling cross level analysis
Post a Comment