Dear Statalist,
PFA the dummy data.
Here I have the following variables -
1. Cluster ID (cluster_id)
2. Patient ID (patient_id)
3. Time - 0 for baseline and 1 for endline (time)
4. Treatment - 0 for control and 1 for intervention (treatment)
5. Systolic BP (systolic)
6. Diastolic BP (diastolic)
I have two datasets of different times
1. A cross sectional survey at baseline and
2. A cross sectional survey at endline.
I want to see the difference in difference in the outcome variables, for example, systolic BP.
I have done the following code,
reg systolic time#treatment, r
Shall I do something for taking the clusters into account?
Note: The respondents at baseline are totally different from the respondents at endlline, only the clusters are same at the two timepoints.
Related Posts with Difference in Difference
Problem merging two panel datasetsI have the following panel dataset of number of workers on online websites ( such as freelancer, Upw…
Dummy trap(intercept) removal in stata. xtreg (AB9 Dne9* Dnr9* Dpe9* Dnr9*) note: Dnr9 omitted because of collinearity Random-effects GLS…
Diff-in-diff with dynamic treatment timeHi, I am trying to investigate the effect of an in-hospital intervention on: 1) Time to emergency …
clustering error in gravity modelHi stata users, Currently, I'm researching for my thesis about the impact of non-tariff measures on…
S-GMM interpretationHello everyone! I'm confused by my Stata-output. I'm doing a system-GMM estimation with bank risk a…
Subscribe to:
Post Comments (Atom)
0 Response to Difference in Difference
Post a Comment