Hello,
I am investigating the effect of a environmental policy on corporate innovation (patents, r&d expenditure). There are 3 phases, and the treatment sometimes stops at phase 1, 2 for some firms(very few).
I am deciding whether to remove those firms and run xthdidregress for staggered effect or csdid. I have experience with using xthdidregress but not csdid. I am studying csdid, but I am not really understanding it. I especially do not understand how to setup gvar (treatment group identifier) in the syntax below:.
csdid depvar [indepvars] [if] [in] [weight], [ivar(varname)] time(varname) gvar(varname) [ options ]
My current treatment varialbe looks as follows:
Firm / Year / Treatment
A 2012 0
A 2013 0
A 2014 0
A 2015 1
......
A 2020 1
A 2021 0
A 2022 0
A 2023 0
Can someone explain what the gvar(varname) is supposed to be and how to chang my current treatment variable to fit the syntax?
Kind regards,
Pak
I am investigating the effect of a environmental policy on corporate innovation (patents, r&d expenditure). There are 3 phases, and the treatment sometimes stops at phase 1, 2 for some firms(very few).
I am deciding whether to remove those firms and run xthdidregress for staggered effect or csdid. I have experience with using xthdidregress but not csdid. I am studying csdid, but I am not really understanding it. I especially do not understand how to setup gvar (treatment group identifier) in the syntax below:.
csdid depvar [indepvars] [if] [in] [weight], [ivar(varname)] time(varname) gvar(varname) [ options ]
My current treatment varialbe looks as follows:
Firm / Year / Treatment
A 2012 0
A 2013 0
A 2014 0
A 2015 1
......
A 2020 1
A 2021 0
A 2022 0
A 2023 0
Can someone explain what the gvar(varname) is supposed to be and how to chang my current treatment variable to fit the syntax?
Kind regards,
Pak
Comment