Hello
I am trying to perform a fixed effect analysis on student achievement gain scores. My data is nested panel data that is two-level data as I have gain scores of students within classrooms. I have 1-2 gain scores for students, and there are 20-30 students per classroom. My data is such that:
class_room student_id . gain_score gain_year
1 1 2 1
1 2 3 1
1 3 2 1
2 1 2 2
2 4 1 1
2 5 2 1
2 2 2 2
My data is unbalanced as I only have records for the students in the classrooms and they may proceed in these schools or drop-out. Additionally because the students are nested within the classrooms they would naturally be repeated measures within the classrooms. I used the code: xtset class_room gain_year and received the error: repeated time values within panel. I am not sure how best to proceed.Any suggestions would be greatly appreciated.
Related Posts with xtset with unbalanced nested panel data
Calculate number of days from selected date to the end of quarterDear All, If I have a table as below: ClinicID Visited Date 001 23Feb2021 002 15Apr2021 00…
What is the prediction model to predict the probability?In a paper, Dasgupta, 2019 used Difference-in-Difference approach to see whether anticollusion laws …
Is Mata at par with C in terms of speed?Since there is no discussion on this topic, I am posting this question here. Is Mata at par with C i…
Mediation problemHi all,I was investigating whether political identity would affect income through social networks, s…
Generate a new variable and assigns 1 after a value increases in other variable.Dear Statalist users, I've been still struggling for a few hours after I tried several commands sea…
Subscribe to:
Post Comments (Atom)
0 Response to xtset with unbalanced nested panel data
Post a Comment