hospital {survey}R Documentation

Sample of obstetric hospitals

Description

The hospital data frame has 15 rows and 5 columns.

Usage

data(hospital)

Format

This data frame contains the following columns:

hospno
a numeric vector
oblevel
a numeric vector
weighta
a numeric vector
tothosp
a numeric vector
births
a numeric vector

Source

http://www.ats.ucla.edu/stat/books/sop/hospsamp.dta

References

Levy and Lemeshow. "Sampling of Populations" (3rd edition). Wiley.

Examples

data(hospital)
hospdes<-svydesign(strata=~oblevel, id=~hospno, weights=~weighta,
fpc=~tothosp, data=hospital)
hosprep<-as.svrepdesign(hospdes)

svytotal(~births, design=hospdes)
svreptotal(~births, design=hosprep)

[Package Contents]