Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

survey (version 2.8-1)

crowd: Household crowding

Description

A tiny dataset from the VPLX manual.

Usage

data(crowd)

Arguments

source

Manual for VPLX, Census Bureau.

Examples

Run this code
data(crowd)

## Example 1-1
i1.1<-as.svrepdesign(svydesign(id=~cluster, weight=~weight,data=crowd))
i1.1<-update(i1.1, room.ratio=rooms/person,
overcrowded=factor(person>rooms))
svrepmean(~rooms+person+room.ratio,i1.1)
svreptotal(~rooms+person+room.ratio,i1.1)
svrepmean(~rooms+person+room.ratio,subset(i1.1,overcrowded==TRUE))
svreptotal(~rooms+person+room.ratio,subset(i1.1,overcrowded==TRUE))

## Example 1-2
i1.2<-as.svrepdesign(svydesign(id=~cluster,weight=~weight,strata=~stratum, data=crowd))
svrepmean(~rooms+person,i1.2)
svreptotal(~rooms+person,i1.2)

Run the code above in your browser using DataLab