Hi,
This is my first time running a difference-in-difference analysis, and I'm not sure if I did it correctly. Here are the details:
Independent Variable:
Also, could you confirm if I applied the difference-in-difference method correctly?
Thank you!
xi: xtdidregress (hard_final_Exact_new Firm_Size_w ROA_w Leverage_w Market_book_four_w Non_pension_CFO_w STD_CFO_w Board_Independence_w BoardSize_w Gender_Diversity_w Fund_Status_w FUNDING_RATIO_w Platn_Size_w CSR_Committee SustainabilityScore_w i.year i.ff_12)(csopresence1 ), group(id) time(year)xi: xtdidregress (hard_final_Exact_new Firm_Size_w ROA_w Leverage_w Market_book_four_w Non_pension_CFO_w STD_CFO_w Board_Independence_w BoardSize_w Gender_Diversity_w Fund_Status_w FUNDING_RATIO_w Platn_Size_w CSR_Committee SustainabilityScore_w i.year i.ff_12)(csopresence1 ), group(id) time(year)
This is my first time running a difference-in-difference analysis, and I'm not sure if I did it correctly. Here are the details:
Independent Variable:
- csopresence1: An indicator variable that takes a value of 1 if the firm has a chief sustainability officer, and 0 otherwise.
- An indicator variable that takes a value of 1 if a firm freezes the defined benefit plan for all employees, and 0 otherwise.
Also, could you confirm if I applied the difference-in-difference method correctly?
Thank you!
xi: xtdidregress (hard_final_Exact_new Firm_Size_w ROA_w Leverage_w Market_book_four_w Non_pension_CFO_w STD_CFO_w Board_Independence_w BoardSize_w Gender_Diversity_w Fund_Status_w FUNDING_RATIO_w Platn_Size_w CSR_Committee SustainabilityScore_w i.year i.ff_12)(csopresence1 ), group(id) time(year)xi: xtdidregress (hard_final_Exact_new Firm_Size_w ROA_w Leverage_w Market_book_four_w Non_pension_CFO_w STD_CFO_w Board_Independence_w BoardSize_w Gender_Diversity_w Fund_Status_w FUNDING_RATIO_w Platn_Size_w CSR_Committee SustainabilityScore_w i.year i.ff_12)(csopresence1 ), group(id) time(year)
HTML Code:
. xi: xtdidregress (hard_final_Exact_new Firm_Size_w ROA_w Leverage_w Market_book_four_w Non_pension_CFO_w STD_CFO_w
> Board_Independence_w BoardSize_w Gender_Diversity_w Fund_Status_w FUNDING_RATIO_w Platn_Size_w CSR_Committee Sustainab
> ilityScore_w i.year i.ff_12)(csopresence1 ), group(id) time(year)
i.year _Iyear_2004-2022 (naturally coded; _Iyear_2004 omitted)
i.ff_12 _Iff_12_1-12 (naturally coded; _Iff_12_1 omitted)
note: _Iff_12_2 omitted because of collinearity.
note: _Iff_12_3 omitted because of collinearity.
note: _Iff_12_4 omitted because of collinearity.
note: _Iff_12_5 omitted because of collinearity.
note: _Iff_12_6 omitted because of collinearity.
note: _Iff_12_7 omitted because of collinearity.
note: _Iff_12_8 omitted because of collinearity.
note: _Iff_12_9 omitted because of collinearity.
note: _Iff_12_10 omitted because of collinearity.
note: _Iff_12_11 omitted because of collinearity.
note: _Iff_12_12 omitted because of collinearity.
note: 2007.year omitted because of collinearity.
note: 2008.year omitted because of collinearity.
note: 2009.year omitted because of collinearity.
note: 2010.year omitted because of collinearity.
note: 2011.year omitted because of collinearity.
note: 2012.year omitted because of collinearity.
note: 2013.year omitted because of collinearity.
note: 2014.year omitted because of collinearity.
note: 2015.year omitted because of collinearity.
note: 2016.year omitted because of collinearity.
note: 2017.year omitted because of collinearity.
note: 2018.year omitted because of collinearity.
note: 2019.year omitted because of collinearity.
note: 2020.year omitted because of collinearity.
note: 2021.year omitted because of collinearity.
note: 2022.year omitted because of collinearity.
Treatment and time information
Time variable: year
Control: csopresence1 = 0
Treatment: csopresence1 = 1
-----------------------------------
| Control Treatment
-------------+---------------------
Group |
id | 88 182
-------------+---------------------
Time |
Minimum | 2004 2004
Maximum | 2021 2022
-----------------------------------
Difference-in-differences regression Number of obs = 3,167
Data type: Longitudinal
---------------------------------------------------------------------------------------
hard_final_Exact_new | Coefficient Std. err. z P>|z| [95% conf. interval]
----------------------+----------------------------------------------------------------
ATET |
csopresence1 |
(1 vs 0) | .024631 .0093159 2.64 0.008 .0063721 .0428898
---------------------------------------------------------------------------------------
Note: ATET estimate adjusted for covariates, panel effects, and time effects.
Note: Treatment occurs at different times and estimation sample contains units that switch in and out of treatment

Comment