On Tue, Apr 15, 2014 at 7:07 AM, Milan Bouchet-Valat <nalimi...@club.fr>wrote:

> Le lundi 14 avril 2014 à 13:59 -0400, Hanze Zhang a écrit :
> > Hi,
> >
> > I want to do logistic regression based on a complex sample design. I used
> > package survey, but when I ran svyglm, an error message came out:
> > Error in onestrat(x[index, , drop = FALSE], clusters[index],
> > nPSU[index][1],  :
> >   Stratum (16) has only one PSU at stage 1
> >
> <snip>
> > How to solve this issue? Thank you.
> You need to merge manually the stratum with only one PSU with another
> stratum. See 3.2.1 in http://books.google.fr/books?id=L96ludyhFBsC
> (look for "single" in the whole book to find it).
>
>
Or set options(survey.lonely.psu) to one of the other values. But merging
strata is probably better.

   -thomas

-- 
Thomas Lumley
Professor of Biostatistics
University of Auckland

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to