Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Post running regressions of panel data

    After running regression on panel data, I want to create a separate dataset containing estimates for 𝛽𝑑, 95% confidence interval bounds for 𝛽𝑑, as well as the mean Saidin Index for the control group and treatment group in each year. This dataset should have one observation per year. 6 var in this dataset: estimates for 𝛽𝑑 in each year tr_effect, the upper CI bound, the lower CI bound, the control group mean, and the treatment group mean.

    additionally for my regression, I want 2004 to be the base (β€œomitted”) category. Framed different, all point estimates should be normalized to zero in 2004. By default it is taking the first year in the data, 2001 as the base year.

    I also want to visualise estimates in treatment and control group means, and show the change in both groups, both before and after the year preceding treatment (i.e. 2004). I also want to add 95% confidence interval bounds for the treatment effect.

    The dataset looks like this,


    * Example generated by -dataex-. For more info, type help dataex clear input str6 prov_id int year byte(tech_num tau teach) int beds byte(nonprof govt treat _merge) float(N_t a_kt saidin) "11z111" 2001 17 1 0 35 0 1 0 3 1305 .0934866 .53716475 "11z111" 2001 2 0 0 35 0 1 0 3 1305 1 .53716475 "11z111" 2001 28 0 0 35 0 1 0 3 1305 1 .53716475 "11z111" 2001 7 0 0 35 0 1 0 3 1305 .27969348 .53716475 ..... .... ..... end label values _merge _merge label def _merge 3 "Matched (3)", modify
    Last edited by snigdha kashyap; 30 Apr 2024, 00:57.
Working...
X