Please ignore-- I realize I can calculate the login transformed CIs using the formula provided in the manual.
Sorry.
I'm using -proportion- to get estimates and the logit-transformed confidence intervals, and I want to be able to save these results in a file, combine them with others and use them to make a table or graph.
I thought to gather these results using Roger Newson's -parmest- or Ben Jann's -estout- but each of these uses the standard error to calculate the 95% CI based on a t-distribution given the degrees of freedom. Here is a simple example.
. eststo clear
. sysuse auto.dta, clear
(1978 Automobile Data)
. proportion rep78
Proportion estimation Number of obs = 69
--------------------------------------------------------------
| Logit
| Proportion Std. Err. [95% Conf. Interval]
-------------+------------------------------------------------
rep78 |
1 | .0289855 .0201966 .0070794 .1110924
2 | .115942 .0385422 .058317 .2173648
3 | .4347826 .0596787 .3214848 .5553295
4 | .2608696 .0528625 .1695907 .3788629
5 | .1594203 .0440694 .0895793 .267702
--------------------------------------------------------------
. parmest, saving(myexample,replace)
file myexample.dta saved
. eststo
(est1 stored)
. use myexample.dta, clear
. list parm min95 max95, clean noobs
parm min95 max95
1.rep78 -.01131623 .06928724
2.rep78 .03903231 .19285175
3.rep78 .31569563 .55386958
4.rep78 .15538409 .36635504
5.rep78 .07148126 .24735932
. estout, cells("b ci_l ci_u" )
---------------------------------------------------
est1
b min95 max95
---------------------------------------------------
1.rep78 .0289855 -.0113162 .0692872
2.rep78 .115942 .0390323 .1928518
3.rep78 .4347826 .3156956 .5538696
4.rep78 .2608696 .1553841 .366355
5.rep78 .1594203 .0714813 .2473593
---------------------------------------------------
Is there another *simple* way to get the logit transformed 95% CI values using these commands or another command? I don't doubt that -putexcel- might be made to do this, but for my purposes it is much easier to just use -Copy table- and paste into Excel.
Thank you,
Dave Harless
Related Posts with Saving 95% CI values after -proportion- using -parmest- or -estout-
How to calculate a running covarance and store the values?Hi, I have panel data, permno is my panel variable. I want to create covariance between returns and …
How to implement the herding measure proposed by Lakonishok et. al (1992) in stataHi all I am currently calculating herd behavior on the trading platform "Robinhood" and I am using …
Logistic regression for categorical variablesWhen running a logistic regression, I'm unable to see all the categories under my variable. For eg: …
String matching to create multiple variablesI need help grouping/creating variables based on string matching. For each patient, they get a new r…
Help with basic subsetting/sub-samplingHello! I am new to programming and need some help with basic subsetting in STATA or R. Hoping someon…
Subscribe to:
Post Comments (Atom)
0 Response to Saving 95% CI values after -proportion- using -parmest- or -estout-
Post a Comment