Announcement

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

  • SVY command with singleunit option

    Hello,
    I am trying to obtain confidence intervals for some descriptive statistics I am running on my dataset. I used the following survey settings:

    svyset c_psu [pweight=c_indinub_xw], strata(c_strata)

    Unfortunately I was unable to obtain confidence intervals because I have strata with single observations. Therefore, I wanted to use the singleunit (centered) option to rectify this. I amended my survey settings to:

    svyset c_psu [pweight=c_indinub_xw], strata(c_strata) singleunit (missing)

    However, I got the following error message:

    option singleunit() not allowed

    Does anyone have any idea why this is occurring?

    Many thanks,
    Dharmi

  • #2
    You have a space between singleunit and (missing). Sometimes Stata is fussy about such things. I would change that first and then let us know if that worked or not.
    -------------------------------------------
    Richard Williams, Notre Dame Dept of Sociology
    StataNow Version: 18.5 MP (2 processor)

    EMAIL: [email protected]
    WWW: https://www3.nd.edu/~rwilliam

    Comment


    • #3
      That worked, thank you!
      Dharmi

      Comment

      Working...
      X