[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Peter Muhlberger <pmuhl1848@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: svyset problem 1 |

Date |
Wed, 23 Sep 2009 16:16:30 -0500 |

Hi folks: Any thoughts on this mysterious error msg? I get the following error... . svy: reg motivhlthQ25d knowfewprofsQ26a badexperQ26b (running regress on estimation sample) fpc for all observations within a stratum must be the same r(461); ...using this syvset command: svyset School_Number, poststrata(category) postweight(categorySchoolsN) singleunit(centered) fpc(NumSchoolsInCategory) When I do a crosstab on category and NumSchoolsInCategory, there is only one NumSchoolsInCategory for any given category, thus fpc values are identical for all observations in a given stratum--contrary to the error message. r(461) might also indicate some issues w/ calculating the variance. I have a minimum N of 36 per category & max 294, so I'd think variance calculation shouldn't be a problem. School_Number is an identifier for each school. category is a strata identifier (subsets of schools with similar characteristics). categorySchoolsN is the number of students in a given category and NumSchoolsInCategory is the number of schools in a given category. There are 8 categories. * * 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/

**Follow-Ups**:**Re: st: svyset problem 1***From:*sjsamuels@gmail.com

- Prev by Date:
**st: using xtile and qreg to find the median income for individuals between certain income percentiles** - Next by Date:
**st: svyset problem 2: using svy with partially complete surveys** - Previous by thread:
**st: using xtile and qreg to find the median income for individuals between certain income percentiles** - Next by thread:
**Re: st: svyset problem 1** - Index(es):

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