hospital: Sample of obstetric hospitals

Description Usage Format Source References Examples

Description

The hospital data frame has 15 rows and 5 columns.

Usage

1

Format

This data frame contains the following columns:

hospno

Hospital id

oblevel

level of obstetric care

weighta

Weights, as given by the original reference

tothosp

total hospitalisations

births

births

weightats

Weights, as given in the source

Source

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

References

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

Examples

1
2
3
4
5
6
7
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)

survey documentation built on June 23, 2017, 4:45 a.m.

Search within the survey package
Search all R packages, documentation and source code