Replies: 2 comments 1 reply
-
|
Hi Salome,
You “manual DiD” is not really a standard DiD as it is not constructed
using the same parallel trends assumption.
Please check the paper by Jeff Wooldridge at the Econometrics Journal on
non-linear DiD estimators.
Thanks
…----------------------------------------------------
*Pedro H. C. Sant'Anna*
*https://psantanna.com <https://psantanna.com>*
----------------------------------------------------
Warning: This email may contain confidential or privileged information
intended only for the use of the individual or entity to whom it is
addressed. If you are not the intended recipient, please understand
that any disclosure, copying, distribution, or use of the contents
of this email is strictly prohibited.
----------------------------------------------------
On Fri, May 30, 2025 at 08:52 skuchukh ***@***.***> wrote:
Hello did community,
My analysis looks at the impact of a policy on HIV incidence in a cohort
of women. I have person-time for each woman's exposure to treatment. I have
only one exposure time point (year 2023). I am conducting a propensity
score weighted poission regression. Oddly, the results I get from did are
qualitatively different from "manual" diff and diff.
Here is my manual did:
didreg_adj <- glm( HIV ~ treated + pre_post + pre_post* treated + log
(pt), data = data, weights = weight, family = poisson(link = "log"))
Here pre_post is a dummy for before or after 2023 and treated is a dummy
for ever-treated vs. never treated. pt is person--time.
Here is my did using the package
resa <- att_gt(
yname = "anc_retest_pos", tname = "year", idname = "area_id", gname = "first_exposure",
xformla = ~ pt, weights = "weight", allow_unbalanced_panel = F,
bstrap = TRUE,
data = dt2 , est_method = "reg", control_group = "nevertreated"
)
first_exposure is 2023 for everyone. year is the time variable. pt is log
of person-time. unfortunately changing the est_method to dr does not make
much of a difference.
Thank you in advance for your help!
best
Salome
—
Reply to this email directly, view it on GitHub
<#227>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABE73443WRXF2XNIUEHKIST3BBIAHAVCNFSM6AAAAAB6H77IDGVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZYGM4TGMRXGM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Dr. Sant'Anna thank you for your reply! I looked at the Wooldridge paper which suggests that when we have non-linear models (e.g. mine - poisson) and small number of time periods (N= 2 in my case), fixed effects strategies (my "manual-did" above) do not generally produce reliable estimators of parameters or partial effects. Does the Thank you so much once again! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello did community,
My analysis looks at the impact of a policy on HIV incidence in a cohort of women. I have person-time for each woman's exposure to treatment. I have only one exposure time point (year 2023). I am conducting a propensity score weighted poission regression. Oddly, the results I get from did are qualitatively different from "manual" diff and diff.
Here is my manual did:
didreg_adj <- glm( HIV ~ treated + pre_post + pre_post* treated + log (pt), data = data, weights = weight, family = poisson(link = "log"))Here
pre_postis a dummy for before or after 2023 andtreatedis a dummy for ever-treated vs. never treated.ptis person--time.Here is my did using the package
first_exposureis 2023 for everyone.yearis the time variable.ptis log of person-time. unfortunately changing the est_method to dr does not make much of a difference.Thank you in advance for your help!
best
Salome
Beta Was this translation helpful? Give feedback.
All reactions