## S3 method for class 'survey.design':
weights(object, ...)
## S3 method for class 'svyrep.design':
weights(object,
type=c("replication","sampling","analysis"), ...)
## S3 method for class 'survey_fpc':
weights(object,final=TRUE,...)
"analysis"
combines sampling and
replication weights.FALSE
return a data frame with sampling
weights at each stage of sampling.svydesign
, svrepdesign
,
as.fpc
data(scd)
scddes<-svydesign(data=scd, prob=~1, id=~ambulance, strata=~ESA,
nest=TRUE, fpc=rep(5,6))
repweights<-2*cbind(c(1,0,1,0,1,0), c(1,0,0,1,0,1), c(0,1,1,0,0,1), c(0,1,0,1,1,0))
scdrep<-svrepdesign(data=scd, type="BRR", repweights=repweights)
weights(scdrep)
weights(scdrep, type="sampling")
weights(scdrep, type="analysis")
weights(scddes)
Run the code above in your browser using DataLab