Displaying 1 result from an estimated 1 matches for "totexp01".
Did you mean:
totexp04
2004 Jul 23
2
Complex Surveys...Specifying Design
...on I get an error message. An excerpt of my
session is as follows...
library(foreign)
> h60 <- read.xport("h:\\meps\\temptransports\\h60.tpt")
> names(h60) <- casefold(names(h60))
> names(h60)
[1] "dupersid" "sex" "inscov01" "totexp01" "perwt01f" "varstr01"
"varpsu01"
> library(survey)
> meps.design <- svydesign(id=~varpsu01, strata=~varstr01, weight=~perwt01f,
data=h60)
Error in svydesign(id = ~varpsu01, strata = ~varstr01, weight = ~perwt01f,
:
Clusters not nested in str...