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 to select/specify variables to include in a table with descriptive statistics?Dear Stata Users, I run the following code to generate a table: Code: unab stubs : *_X local st…
Errors using random slope on dummy variableHello, Thank you for reading my post. I am seeking advice about the following problem: I am estimat…
Collinearity with long-run averageHi, I am creating a long-run average of crime rates disaggregated which are reported at the distric…
For each i, calculate median value of observations in the dataset whose value falls within an interval defined by i's valueHello! I have 430 observations, each of whom declare a GOAL time (in seconds), and whose FINISH tim…
replacing missing with non-missing within the same variableBelow is an example of the dataset (for some reason the columns are not lining up with the variables…
Subscribe to:
Post Comments (Atom)
0 Response to Reduce number of decimals in twostepweakiv output
Post a Comment