Hello, I was trying to use the twostepweakiv command to compute the AR 95% confidence intervals. The problem is that this command saves the interval as a string, so I cannot format the number of decimals included in the interval.
The example below generates the table that I am trying to compute, except, it includes too many decimals for the confidence intervals. Any ideas of how to reduced the size? Alternatively, has anyone else found any ways of
exporting the output of twostepweakiv into latex tables?
use http://www.stata.com/data/jwooldridge/eacsap/mroz.dta
generate byte poshours=(hours>0)
eststo clear
twostepweakiv 2sls lwage exper expersq (educ = fatheduc motheduc)
local ar = e(ar_cset)
local wald = e(wald_cset)
eststo:ivregress 2sls lwage exper expersq (educ = fatheduc motheduc)
estadd local arval "`ar'"
estadd local waldval "`wald'"
esttab using table.tex, se se(2) b(2) stats(arval waldval N, fmt(%15s %15s %12.0fc) labels("Schooling 95\% CI -- AR" "Schooling 95\% CI -- Wald" "N. of observations")) star(* 0.10 ** 0.05 *** 0.01) label nomtitles replace nogaps nonotes nonumber substitute(\_ _)
Related Posts with Reduce number of decimals in twostepweakiv output
Dummy dependent: ANOVA v logitThis is a statistics question rather than a Stata question, but would appreciate any advice. After …
How to drop repeated years in a panel datasetHi everyone, I have a panel dataset with countries and years from 1999 to 2019. However, for each c…
Subgroup Analysis and Sample Selection BiasI employ a DiD model and want to compare the effect of independent variable (post##treatment) on a d…
Baseline table package showing p-value and statistics-value There has been some useful table1 package, such as table1 and table1_mc. However, they can not show…
Create dataset - longitudinalHello, I have a dataset (example below) where I use the command "append" to add the datasets: i_ind…
Subscribe to:
Post Comments (Atom)
0 Response to Reduce number of decimals in twostepweakiv output
Post a Comment