Hi everyone,
May I please ask for your help on the following subject?
I have a sample of students from different schools that entered the 2005 lottery to move to a better school. Some students were randomly selected and moved to the new school in either 2006 or 2007. I want to estimate the effect of moving to a better school on their grades. I have the grades of all students (selected and non-selected, before and after the move).
I cannot implement hdidregress, as the treatment did not apply to certain groups. Reading around the forum I became more confused as to if this is a staggered diff-in-diff or a stepped wedge design. If there is anyone familiar with the subject I would really appreciate the help.
In the following example, id is the id of the student, school is the name of the school, treated indicated if the student has moved to the new school grade is the grade of the student and year is the year.
Thank you for reading my post!
May I please ask for your help on the following subject?
I have a sample of students from different schools that entered the 2005 lottery to move to a better school. Some students were randomly selected and moved to the new school in either 2006 or 2007. I want to estimate the effect of moving to a better school on their grades. I have the grades of all students (selected and non-selected, before and after the move).
I cannot implement hdidregress, as the treatment did not apply to certain groups. Reading around the forum I became more confused as to if this is a staggered diff-in-diff or a stepped wedge design. If there is anyone familiar with the subject I would really appreciate the help.
In the following example, id is the id of the student, school is the name of the school, treated indicated if the student has moved to the new school grade is the grade of the student and year is the year.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float id str19 school float treated double grade float year 1 "51st CA" 0 16.153846740722656 2004 1 "51st CA" 0 15.75 2005 1 "51st CA" 0 15 2006 2 "51st CA" 0 17.08333396911621 2004 2 "51st CA" 0 17.090909957885742 2005 2 "51st CA" 0 15.833333015441895 2006 3 "23rd Rd Island" 0 13.461538314819336 2005 3 "23rd Rd Island" 0 16 2006 3 "23rd Rd Island" 0 12 2007 4 "23rd Rd Island" 0 16.83333396911621 2004 4 "23rd Rd Island" 0 16.090909957885742 2005 4 "23rd Rd Island" 1 15.833333015441895 2006 5 "51st CA" 0 18.66666603088379 2005 5 "51st CA" 1 17.41666603088379 2006 5 "51st CA" 1 15.583333015441895 2007 5 "51st CA" 1 15.115385055541992 2008 5 "51st CA" 1 15.630768775939941 2009 5 "51st CA" 1 17.127273559570313 2010 6 "Diap 090" 0 14.15384578704834 2004 6 "Diap 090" 0 12.916666984558105 2005 6 "Diap 090" 0 13.083333015441895 2006 7 "Diap 090" 0 18.75 2005 7 "Diap 090" 0 14.7 2006 7 "Diap 090" 0 15 2007 8 "Diap 090" 0 18.538461685180664 2004 8 "Diap 090" 0 16 2005 8 "Diap 090" 0 14 2006 9 "Diap 090" 0 10.692307472229004 2004 9 "Diap 090" 0 16 2005 9 "Diap 090" 0 13 2006 10 "Diap 090" 0 13.076923370361328 2005 10 "Diap 090" 0 11.583333015441895 2006 10 "Diap 090" 0 13 2007 end
Thank you for reading my post!
Comment