Dear statusers,
I'm currently estimating the effect of a large public program that opened an outstanding lower high school number of classes some countries in Africa. My outcome variable (Y = mdschoolattendance, binary 0-1) is lower secondary school attendance and my treatment variable (T = newclasses, ranges from 0-750) is equal to the number of schools opened in the village of my observations during the 8 years of the program, therefore, the treatment is continuous. The treatment, as I specified, is defined at village level (id_geo, 1-2202) but also depending on the cohort (treatment_cohort, 0-1) in the sense that some were too old to be affected by the policy and others enough young.
With this setup I've tried to use didregress, with cross-sectional data and clustering by village, however I get the same message: "The treatment variable newclasses was omitted because of collinearity".
Someone knows why this happens? I'm sure it is something obvious but I can't see it....
Thanks in advance!
Daniel.
I'm currently estimating the effect of a large public program that opened an outstanding lower high school number of classes some countries in Africa. My outcome variable (Y = mdschoolattendance, binary 0-1) is lower secondary school attendance and my treatment variable (T = newclasses, ranges from 0-750) is equal to the number of schools opened in the village of my observations during the 8 years of the program, therefore, the treatment is continuous. The treatment, as I specified, is defined at village level (id_geo, 1-2202) but also depending on the cohort (treatment_cohort, 0-1) in the sense that some were too old to be affected by the policy and others enough young.
With this setup I've tried to use didregress, with cross-sectional data and clustering by village, however I get the same message: "The treatment variable newclasses was omitted because of collinearity".
Code:
didregress (mdschoolattaind) (newclasses, continuous), group(id_geo treatment_cohort) vce(cluster id_geo)
Thanks in advance!
Daniel.
Comment