Hi guys,
I'm experiencing some trobles when running a bootstrap over a program. I got this double error message
. I've googled the error and find that it is typical of panel data, but this is not my case. My dataset is not a panel dataset. The data is monthly from 2003m1 to 2021m12, I will drop the program here:
and this is the string for bootstrap
the variables preceded by return scalar are those for which I want to bootstrap the error term.
If you have any questions about the dataset I will be happy to reply.
Many thanks in advance,
Federica
I'm experiencing some trobles when running a bootstrap over a program. I got this double error message
Code:
repeated time values in sample an error occurred when bootstrap executed multi_mfi, posting missing values insufficient observations to compute bootstrap standard errors no results will be saved
Code:
cap program drop multi_mfi program multi_mfi, rclass args X Y Z qui { sort Date tset Date, monthly forv h = 12/12 { * X cumulative newey c`X'_`h' lc`X' target_factor ts_factor tf_ECB_totasset_IV_dem tsf_ECB_totasset_IV_dem l.(lgdp hicp corpborr_cost LoantoDepSpread Capital LoanR Liquidity), lag(`h') cap drop `X'_ab `X'_ab2 gen `X'_ab = e(b)[1,2]*-1+e(b)[1,4]*-1 gen `X'_ab2 = e(b)[1,3]*-1+e(b)[1,5]*-1 * Y cumulative newey c`Y'_`h' lc`Y' target_factor ts_factor tf_ECB_totasset_IV_dem tsf_ECB_totasset_IV_dem l.(lgdp hicp corpborr_cost LoantoDepSpread Capital LoanR Liquidity), lag(`h') cap drop `Y'_ab `Y'_ab2 gen `Y'_ab = e(b)[1,2]*-1+e(b)[1,4]*-1 gen `Y'_ab2 = e(b)[1,3]*-1+e(b)[1,5]*-1 * Z cumulative newey c`Z'_`h' lc`Z' target_factor ts_factor tf_ECB_totasset_IV_dem tsf_ECB_totasset_IV_dem l.(lgdp hicp corpborr_cost LoantoDepSpread Capital LoanR Liquidity), lag(`h') cap drop `Z'_ab `Z'_ab2 gen `Z'_ab = e(b)[1,2]*-1+e(b)[1,4]*-1 gen `Z'_ab2 = e(b)[1,3]*-1+e(b)[1,5]*-1 *** ECB tot asset cap drop ECB_totasset_`h' gen ECB_totasset_`h' = f`h'.ECB_totasset newey ECB_totasset_`h' target_factor ts_factor l.(lgdp hicp crisis), lag(`h') * conventional cap drop ECB_totasset_b ECB_totasset_b2 gen ECB_totasset_b = e(b)[1,2]*-1 gen ECB_totasset_b2 = e(b)[1,3]*-1 } * coefficients conventional shock tempname MFI_loan_re_ab_conv gen `MFI_loan_re_ab_conv'=`X'_ab+`Y'_ab * conventional multiplier return scalar MFI_multi_re_conv=`MFI_loan_re_ab_conv'/ECB_totasset_b return scalar MFI_multi_fin_conv=`Z'_ab/ECB_totasset_b * coefficient unconventional shock tempname MFI_loan_re_ab_unconv gen `MFI_loan_re_ab_unconv'=`X'_ab2+`Y'_ab2 * unconventional multiplier return scalar MFI_multi_re_unconv=`MFI_loan_re_ab_unconv'/ECB_totasset_b2 return scalar MFI_multi_fin_unconv=`Z'_ab2/ECB_totasset_b2 } end
Code:
bootstrap r(MFI_multi_fin_unconv), reps(5) noisily: multi_mfi MFI_loan_nfc MFI_loan_hh MFI_loan_nbfi
If you have any questions about the dataset I will be happy to reply.
Many thanks in advance,
Federica
Comment