Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: RE: Exponentiating bootstrapped coefficients?


From   "Matt Spittal" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: Exponentiating bootstrapped coefficients?
Date   Wed, 3 Sep 2008 11:40:40 +1000

Chelsea,

The following command produces odds ratios for me (using the auto dataset).

	xi: bootstrap, reps(2000): logistic  foreign i.rep78  price weight

-- Matt
[email protected]  



-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Polis, Chelsea
B.
Sent: Wednesday, 3 September 2008 11:22 AM
To: [email protected]
Subject: RE: st: RE: Exponentiating bootstrapped coefficients?


Many thanks for this suggestion, Nick.  Unfortunately, Stata is still saying that "option eform not allowed".  My results are pasted below.

Any other ideas?

Many thanks,
Chelsea

. xi: bootstrap _b, eform reps(2000) dots: logistic hc i.agecat i.educ i.sexpcat currrltn
i.agecat          _Iagecat_1-3        (naturally coded; _Iagecat_1 omitted)
i.education       _Ieducation_0-3     (naturally coded; _Ieducation_0 omitted)
i.sexpcat         _Isexpcat_0-2       (naturally coded; _Isexpcat_0 omitted)
(running logistic on estimation sample)

Bootstrap replications (2000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5
..................................................    50
..................................................   100
..................................................   150
.x................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
.............................................x....   700
...............................x..................   750
..................................................   800
.................................................x   850
................................................x.   900
..x...............................................   950
..................................................  1000
........x.........................................  1050
..x...........x...................................  1100
...................x..............................  1150
..................................................  1200
..................................................  1250
..................................................  1300
..................................................  1350
..................................................  1400
..................................................  1450
..................................................  1500
..................................................  1550
..................................................  1600
..................................................  1650
..................................................  1700
..................................................  1750
.............x....................................  1800
..................................................  1850
..................................................  1900
..................................................  1950
..................................................  2000
option eform not allowed
r(198);


On 9/2/2008 7:51 PM, Nick Cox wrote:
> Try
>
> xi: bootstrap _b, eform reps(2000) dots: logistic hc i.agecat i.educ
> i.sexpcat currrltn
>
> Nick
> [email protected]
>
> Polis, Chelsea B.
>
> I am doing a logistic regression (xi: logistic hc i.agecat i.educ
> i.sexpcat currrltn).  When I tried to bootstrap the data (bs "xi:
> logistic hc i.agecat i.educ i.sexpcat currrltn" _b, reps(2000) dots),
> the coefficients are not exponentiated.
>
> I tried typing "eform" after the comma (and tried using both logit and
> logistic as the main command) but STATA says "option eform not allowed"
> (even though eform does show up in the help file).  I am using STATA/SE
> 10.1 for Windows, on a computer running Vista, if that matters.  Can
> anybody tell me what I am missing here?  I know I could exponentiate
> everything by hand, but I can't imagine that people do this each time
> they bootstrap.
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index