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

From |
"Nick Cox" <n.j.cox@durham.ac.uk> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
RE: st: simulated data for logistic regression... remedial algebra help? |

Date |
Tue, 20 Nov 2007 12:14:36 -0000 |

Richard is correct. FAQ . . . . . . . . . . . . . . The use of macros with the power operator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . W. Gould 12/99 I coded `a'^2 and got the wrong sign. Why? http://www.stata.com/support/faqs/lang/macpow.html Nick n.j.cox@durham.ac.uk Richard Williams At 10:37 PM 11/19/2007, Daniel Waxman wrote: >There was a wicked exponentiation problem that took a few hours to >figure out (beware of how Stata evaluates the exponentiation of a >negative number... e.g. -2^2 evaluates to -4) I swear there is a FAQ on this but I can't find it. Anyway, yes, as far as Stata is concerned, you are saying minus 2 squared, rather than negative 2 squared, i.e. the dash is a minus sign, not a negative sign. * * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**References**:**st: simulated data for logistic regression... remedial algebra help?***From:*"Daniel Waxman" <dan@amplecat.com>

**st: RE: simulated data for logistic regression... remedial algebra help?***From:*"Daniel Waxman" <dan@amplecat.com>

**Re: st: RE: simulated data for logistic regression... remedial algebra help?***From:*Steven Joel Hirsch Samuels <sjhsamuels@earthlink.net>

**RE: st: simulated data for logistic regression... remedial algebra help?***From:*"Daniel Waxman" <dan@amplecat.com>

**RE: st: simulated data for logistic regression... remedial algebra help?***From:*Richard Williams <Richard.A.Williams.5@ND.edu>

- Prev by Date:
**RE: st: RE: ologit data handling** - Next by Date:
**st: direct import from Epidata-Entry .rec files** - Previous by thread:
**RE: st: simulated data for logistic regression... remedial algebra help?** - Next by thread:
**st: Listing criteria** - Index(es):

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