Hey George Ford , can you talk a little more on what you mean for the inference procedure? I knew something wasn't right about the CIs or SEs, but I couldn't figure what it was. The R2 and ATT match precisely the results from HCW, but the inference is off by only just a little. Here is the relevant matlab part of Kathy's code
The matlab script is a little ugly, but it it's what the original code was written for.
I also agree on adding DID as an option just for comparison, as well as making it sample size specific. I'll do that once I'm okay with the inference as it is currently
EDIT: for reference, the CI for HCW is (according to Kath's replication file)
Code:
Omega_1_hat_FDID=(t2/t1)*mean(u1_FDID.^2);% \hat\Sigma_{1,FDID} Omega_2_hat_FDID=mean(u1_FDID.^2); % \hat\Sigma_{2,FDID} std_Omega_hat_FDID=sqrt(Omega_1_hat_FDID+Omega_2_hat_FDID); % square-root of \hat Sigma^2_{FDID} ATT_std_FDID=sqrt(t2)*ATT_FDID/std_Omega_hat_FDID % standardized ATT, it is N(0,1) under H0: ATT = 0 p_value_forward_DID=2*(1-normcdf(abs(ATT_std_FDID))) % p-value for ATT=0 p_value_f_one_sided=(1-normcdf(ATT_std_FDID)) % p-value for 1-sided test CI_95_FDID_left= ATT_FDID-1.96*std_Omega_hat_FDID/sqrt(t2); CI_95_FDID_right=ATT_FDID+1.96*std_Omega_hat_FDID/sqrt(t2); CI_95_FDID_width=[CI_95_FDID_left,CI_95_FDID_right,CI_95_FDID_right-CI_95_FDID_left]
I also agree on adding DID as an option just for comparison, as well as making it sample size specific. I'll do that once I'm okay with the inference as it is currently
EDIT: for reference, the CI for HCW is (according to Kath's replication file)
Code:
MATLAB Sample output: Number_controls_selected_by_FDID = 9 ATT_FDID = 0.025405 ATT_FDID_per = 53.843 R2_forward_DID = 0.84278 ATT_std_FDID = 5.4941 p_value_forward_DID = 3.9274e-08 p_value_fDID_one_sided = 1.9637e-08
Comment