[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: How can I do a weighted logit? |

Date |
Wed, 30 Jul 2008 21:49:27 +0100 |

StataCorp has shut one door on this, but another is wide open. You can use -glm, link(logit)- with aweights. As for the general claim, here is one situation in which aweights seem at first sight quite right for binary responses. In geography we can have two kinds of land cover or land use (land/sea, urban/rural, whatever) and we know or measure the fractions of each in various areas. For example, 71% of the Earth is sea and 29% is land. There is not a known or even natural integer for the number of observations each of those fractions is based on. Nick n.j.cox@durham.ac.uk Yulia Marchenko, StataCorp LP "L S" <lts40301@gmail.com> asked about using analytic weights with logit regression: > I am trying to run a weighted logit regression in STATA. > It is easy to notice that weights are not allowed by the basic > logit command (STATA gives the error 'aweight not allowed'). I have > been told about the possibility of referring to a past version of > STATA which supports aweights: > > version 9.0 > logit y x [aw=w] Analytic weights, -aweights-, are used to represent the cell-means data and, thus, do not have meaningful interpretation with binary-response data. As Maarten mentioned, only -fweights-, -iweights-, and -pweigths- may be used with -logit-. Although never documented, -aweights- were allowed with -logit- prior to Stata's version 9.1, at which time they were removed because of their noninterpretability. -- Yulia ymarchenko@stata.com * * 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/

**References**:**Re: st: How can I do a weighted logit?***From:*ymarchenko@stata.com (Yulia Marchenko, StataCorp LP)

- Prev by Date:
**st: Harounan Kazianga is out of the office.** - Next by Date:
**Re: st: RE: Dialog Programming** - Previous by thread:
**Re: st: How can I do a weighted logit?** - Next by thread:
**RE: st: How can I do a weighted logit?** - Index(es):

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