hospital | R Documentation |
The hospital
data frame has 15 rows and 5 columns.
data(hospital)
This data frame contains the following columns:
Hospital id
level of obstetric care
Weights, as given by the original reference
total hospitalisations
births
Weights, as given in the source
Previously at http://www.ats.ucla.edu/stat/books/sop/hospsamp.dta
Levy and Lemeshow. "Sampling of Populations" (3rd edition). Wiley.
data(hospital)
hospdes<-svydesign(strata=~oblevel, id=~hospno, weights=~weighta,
fpc=~tothosp, data=hospital)
hosprep<-as.svrepdesign(hospdes)
svytotal(~births, design=hospdes)
svytotal(~births, design=hosprep)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.