Dear all
I use this do-file :
collect _r_b _r_se, tag(model[(ra)]): ///
teffects ra (rend_val $xvars_bon tail_mng niv_exp_choc bien_e_s) (T40) [pwei=poids] if var40==0, atet
collect _r_b _r_se, tag(model[(ipw)]): ///
teffects ipw (rend_val) (T40 $xvars_bon tail_mng niv_exp_choc bien_e_s, probit) [pwei=poids] if var40==0, atet
collect _r_b _r_se, tag(model[(ipwra)]): ///
teffects ipwra (rend_val $xvars_bon tail_mng niv_exp_choc bien_e_s) ///
(T40 $xvars_bon tail_mng niv_exp_choc bien_e_s, probit) [pwei=poids] if var40==0, atet
collect _r_b _r_se, tag(model[(nnmatch)]): ///
teffects nnmatch (rend_val $xvars_bon tail_mng niv_exp_choc bien_e_s) (T40) if var40==0, atet
collect _r_b _r_se, tag(model[(psmatch)]): ///
teffects psmatch (rend_val) (T40 $xvars_bon tail_mng niv_exp_choc bien_e_s) if var40==0, atet
collect layout (colname#result) (model)
collect style showbase off
collect style cell, nformat(%5.2f) border(right, pattern(nil))
collect style cell result[_r_se], sformat("(%s)")
collect preview
collect style cell cell_type[item column-header], halign(center)
collect style header result, level(hide)
collect style column, extraspace(1)
collect stars _r_p 0.01 "***" 0.05 "** " 0.1 "* " 1 " ", attach(_r_b)
collect preview
collect style putdocx, layout(autofitcontents) ///
title("Tableau essai")
collect export Tableau_essai_covariates.docx, as(docx) replace
to get this table (the title is omitted):
Now I want to drop all the covariates from the 6th line to the last one.
Please tell me how to do that with the collect command. I do it easily with esttab :
esttab using "rend_val_teffects_T40.rtf", label nonumbers nodepvar compress append ///
title(==================================) ///
drop($xvars_bon tail_mng niv_exp_choc bien_e_s _cons) addnote("Enquête PADMAR")
I use this do-file :
collect _r_b _r_se, tag(model[(ra)]): ///
teffects ra (rend_val $xvars_bon tail_mng niv_exp_choc bien_e_s) (T40) [pwei=poids] if var40==0, atet
collect _r_b _r_se, tag(model[(ipw)]): ///
teffects ipw (rend_val) (T40 $xvars_bon tail_mng niv_exp_choc bien_e_s, probit) [pwei=poids] if var40==0, atet
collect _r_b _r_se, tag(model[(ipwra)]): ///
teffects ipwra (rend_val $xvars_bon tail_mng niv_exp_choc bien_e_s) ///
(T40 $xvars_bon tail_mng niv_exp_choc bien_e_s, probit) [pwei=poids] if var40==0, atet
collect _r_b _r_se, tag(model[(nnmatch)]): ///
teffects nnmatch (rend_val $xvars_bon tail_mng niv_exp_choc bien_e_s) (T40) if var40==0, atet
collect _r_b _r_se, tag(model[(psmatch)]): ///
teffects psmatch (rend_val) (T40 $xvars_bon tail_mng niv_exp_choc bien_e_s) if var40==0, atet
collect layout (colname#result) (model)
collect style showbase off
collect style cell, nformat(%5.2f) border(right, pattern(nil))
collect style cell result[_r_se], sformat("(%s)")
collect preview
collect style cell cell_type[item column-header], halign(center)
collect style header result, level(hide)
collect style column, extraspace(1)
collect stars _r_p 0.01 "***" 0.05 "** " 0.1 "* " 1 " ", attach(_r_b)
collect preview
collect style putdocx, layout(autofitcontents) ///
title("Tableau essai")
collect export Tableau_essai_covariates.docx, as(docx) replace
to get this table (the title is omitted):
(ra) | (ipw) | (ipwra) | (nnmatch) | (psmatch) | |
(1 vs 0) | 152.31** | 180.72*** | 160.56*** | 137.90*** | 125.51*** |
(60.24) | (59.53) | (59.81) | (44.50) | (45.56) | |
T40=0 | 427.20*** | 398.79*** | 418.95*** | ||
(18.07) | (15.42) | (15.77) | |||
Nombre de femmes dans le ménage | 0.16*** | ||||
(0.04) | |||||
Nombre de femmes en âge de travailler | 0.22*** | ||||
(0.04) | |||||
Nombre d'hommes en âge de travailler | 0.37*** | ||||
(0.04) | |||||
Ratio de dépendance | 0.09 | ||||
(0.07) | |||||
Taux de scolarisation des enfants de 6-14 ans du ménage | 0.00*** | ||||
(0.00) | |||||
Distance du village à la route principale | -0.00 | ||||
(0.01) | |||||
Distance au centre de santé le plus proche | -0.03*** | ||||
(0.01) | |||||
Si non, distance à l'école primaire la plus proche du village | 0.04** | ||||
(0.02) | |||||
Si non, distance au collège public le plus proche du village | -0.01 | ||||
(0.01) | |||||
Si non, distance au point de vente d'engrais chimiques le plus proche du village | -0.00 | ||||
(0.00) | |||||
Si non, distance au point de vente de produits phytosanitaires le plus proche du | -0.00 | ||||
(0.00) | |||||
Nombre de pièces dans le logement occupé par le ménage | -0.16*** | ||||
(0.02) | |||||
experience | -0.00 | ||||
(0.00) | |||||
Superficie totale disponible (en ha) | 0.06*** | ||||
(0.02) | |||||
Superficie totale emblavée (en ha) | -0.06* | ||||
(0.03) | |||||
Taille du ménage | -0.26*** | ||||
(0.02) | |||||
RECODE of ind_choc (Indice d'exposition aux chocs) | 0.08*** | ||||
(0.02) | |||||
Niveau de bien-être subjectif | 0.17*** | ||||
(0.02) | |||||
Intercept | -1.24*** | ||||
(0.13) |
Please tell me how to do that with the collect command. I do it easily with esttab :
esttab using "rend_val_teffects_T40.rtf", label nonumbers nodepvar compress append ///
title(==================================) ///
drop($xvars_bon tail_mng niv_exp_choc bien_e_s _cons) addnote("Enquête PADMAR")