When I run the example code of didregress,I get very different result from Stata.com Difference-in-differences (DID) and DDD models | New in Stata 17,
Code:
webuse hospdd
didregress (satis) (procedure), group(hospital) time(month) wildbootstrap(rseed(111)
> )
computing 1000 replications
Finding p-value
.................................................. 50%
................................................. 100%
Confidence interval lower bound
.....
Confidence interval upper bound
............
Number of groups and treatment time
Time variable: month
Control: procedure = 0
Treatment: procedure = 1
-----------------------------------
| Control Treatment
-------------+---------------------
Group |
hospital | 28 18
-------------+---------------------
Time |
Minimum | 1 4
Maximum | 1 4
-----------------------------------
DID with wild-cluster bootstrap inference Number of obs = 7,368
No. of clusters = 46
Replications = 1,000
Data type: Repeated cross-sectional
Error weight: rademacher
-----------------------------------------------------------------
satis | Coefficient t P>|t| [95% conf. interval]
------------+----------------------------------------------------
ATET |
procedure|
(New vs Old)| .8479879 26.41 0.000 .7806237 .9157614
-----------------------------------------------------------------
Note: ATET estimate adjusted for group effects and time effects.
Code:
Here the coefficient is 0.8479,t value is 26.41.But in Stata.com,the coefficient is 0.8601,t value is 19.72.What's wrong with this?
0 Response to question about didregress
Post a Comment