I want to examine the effect of education(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 the question makes sense.
Related Posts with Multi level modelling cross level analysis
Margins after menbreg with exposureHello, I am estimating the following multilevel negative binomial model with an exposure term. Co…
calculate the difference between a date n and the first date of a long setPlease I need to calculate the difference between a date n and the first date of a long set. I do no…
stset for multiple failure data queryDear all, I would like to ask for some advice on 'stset'-ing my dataset with multiple failures per …
How can I extract a part of a string variable which contains zipcode information?Hello, I'm working with Massachusetts zip code data and there are 3 kinds of formats the data is cur…
Calculate daily stock return relative to peak in the last 6 month periodI have daily stock market data and would like to calculate the return for each observation relative …
Subscribe to:
Post Comments (Atom)
0 Response to Multi level modelling cross level analysis
Post a Comment