Hello Members,
I have a pressing doubt in implementing the diff in diff in Stata 17. - didregress command.
My research question explores the impact of mobile phone usage on the crop yield of farmers. In this model, I have a continuous outcome (crop yield of farmers), treatment variable (usage of phones), few covariates (farm level variables), Time variable (crop season A and crop season B) and group variable - ??
The didregress requires the following command for cross sectional - repeated measures data -
"didregress (y1 x1 x2) (treat1), group(grpvar1) time(tvar)"
In the current case, I have crop yield data (outcome variable) of 1000 farmers in two crop seasons (time-variable), whereas the treatment is the usage of phones (measured in number of minutes over the study period). Given the above command, my research question, and the data available, I have two doubts -
1. What is the group variable for the didregress model in this case? As you see, I am not giving intervention based on any groups. I thought each farmer was his/her own group. But I got errors while executing this
2. How do I implement continuous treatment variable in didregress? I know that we need to specify "(treatment_variable, continuous)" but that doesn't seem to work and throws errors.
Can someone please help me in this?
Regards
Related Posts with Difference in Differences with cross sectional data - continuous treatment (didregress)
Same or different order differencing in OLS regression.Dear all, Can one difference some explanatory variables but not the others? Or if one explanatory v…
General question on cumulative incidence and odds ratiosHello. I am not very conversant with statistics and I have run into something that seems quite odd t…
Generating binary variable by comparing string against list of keywordsDear all, I have what I think is a relatively straightforward question, but I have been unable to u…
How to identify who ever worksDear all, I have a 4-wave panel data and I want to identify individuals who ever work, i.e. someone…
Fixed vs. random Effects testGood day. I am finding it difficult to run the xtoverid test as a result of my i.# interaction term…
Subscribe to:
Post Comments (Atom)
0 Response to Difference in Differences with cross sectional data - continuous treatment (didregress)
Post a Comment