search for: perwt01f

Displaying 1 result from an estimated 1 matches for "perwt01f".

2004 Jul 23
2
Complex Surveys...Specifying Design
...sage. 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 strata > I'm...