Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multilevel data analysis with complex sampling

    I am trying to conduct a multi-level model of students (level 1) nested within states (level 2). I am using Youth Risk Behavior Survey (YRBS) data, which has a complex sampling structure (for more information see here: http://www.cdc.gov/healthyyouth/data...s_software.pdf)

    Using the CDC's recommendations (mentioned above), I set the survey design with the following comman:
    svyset psu [pweight=weight], strata(stratum)

    Then I try to fit my unconditional multilevel model:
    svy: melogit depvar || state: ,

    And I get this error:
    (running melogit on estimation sample)
    survey final weights not allowed with multilevel models;
    a final weight variable was svyset using the [pw=exp] syntax, but multilevel
    models require that each stage-level weight variable is svyset using the stage's
    corresponding weight() option
    an error occurred when svy executed melogit
    r(459);


    Can you help me avoid this error please?

    Last edited by rcoulter; 12 Feb 2016, 19:19.
Working...
X