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
repeat ineqdeco routine for several countriesHi, I need to compute overall theil index, within and between decomposition and inequality for subgr…
Generating multiple of the same report, with different resultsMy goal is to create several PDF reports using the putpdf function. With the data I have right now, …
Using MICE wellI have an epidemiological data set and am interested in the association of exposure to cigarette smo…
Merging two datasets one with dimensions ijt and other with dimensions jktDear Statalist, I have two datasets on conflict that I want to merge but I don't know which merge f…
Problem using Sampling Weights for different Survey YearsDear Statalist Users, I am analysing Panel Data at the individual level in 3 Survey Years: 1992, 20…
Subscribe to:
Post Comments (Atom)
0 Response to Reduce number of decimals in twostepweakiv output
Post a Comment