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
How can I 'find' a specific word across multiple variable strings?I'm using Stata 14.2 on Windows. I have a dataset which is STI testing data, each line is a test res…
Replicate R's pnorm functionHi Statalist, I'm porting a couple R scripts to Stata and have hit a roadblock. I have been unable …
Query of small sampleDear Statalist, I would like to get your advice about a stata command. I prefer to generate a small …
Calculate weight for repeated cross-sectional data collected weekly since May 2020Hi Could you please suggest how do I calculate weight for the data considered as repeated cross-sect…
Help!Can't open data in STATADear Statalister, I would like to ask why I cannot open data that download as STATA v14+ file.dta f…
Subscribe to:
Post Comments (Atom)
0 Response to Reduce number of decimals in twostepweakiv output
Post a Comment