Hello, I want to do multilevel analysis - and I have encountered a problem.
I want to do an analysis about happiness level of students in class 1 elite class,
BUT in my analysis, perception of class 2 students, non-elite students about elite student in class 1 will be one of the predictors.
The perception about class 1 by class 2 will be made with the code:
egen group_perception=median(perception) if class==2
as the group_perception variable was made by the students in class 2, when I tried to use it in the multilevel analysis, the error : no observation occurs - which is not very surprising considering that the group_perception variable was only made with the students in class 2 and I am running multilevel analysis with the students in class 1.
How would I be able to solve this problem? Thanks.
Related Posts with How to make group-level variable?
Calculating the number of new investments of a VC in a specific industry in 5 years prior to the focal investment (observation)I am using Stata 15.0 I hope somebody can help me, given that I have been struggling for a lot of t…
Is there a particular reason why Stata under Linux doesn't export .wmf files?Fellow Statalisters (especially StataCorp): Is there a particular reason why, in Stata under Linux,…
Plotting marginal effects from a multinomial logit modelDear members of the list, I am trying to plot the marginal effects from a multinomial logit model. …
Seasonality graphicsHi, i need help! I'm testing seasonality in trend research about a rare disease. I found statistic…
Difference in Difference Approach for Panel datahi I performed a Lab experiment on 34 people (17 in control and 17 in treatment). I played 3 rounds …
Subscribe to:
Post Comments (Atom)
0 Response to How to make group-level variable?
Post a Comment