BigCity {TeachingSampling} | R Documentation |
Full Person-level Population Database
Description
This data set corresponds to some socioeconomic variables from 150266 people of a city in a particular year.
Usage
data(BigCity)
Format
- HHID
The identifier of the household. It corresponds to an alphanumeric sequence (four letters and five digits).
- PersonID
The identifier of the person within the household. NOTE it is not a unique identifier of a person for the whole population. It corresponds to an alphanumeric sequence (five letters and two digits).
- Stratum
Households are located in geographic strata. There are 119 strata across the city.
- PSU
Households are clustered in cartographic segments defined as primary sampling units (PSU). There are 1664 PSU and they are nested within strata.
- Zone
Segments clustered within strata can be located within urban or rural areas along the city.
- Sex
Sex of the person.
- Income
Per capita monthly income.
- Expenditure
Per capita monthly expenditure.
- Employment
A person's employment status.
- Poverty
This variable indicates whether the person is poor or not. It depends on income.
Author(s)
Hugo Andres Gutierrez Rojas hagutierrezro@gmail.com
References
Gutierrez, H. A. (2009), Estrategias de muestreo: Diseno de encuestas y estimacion de parametros. Editorial Universidad Santo Tomas.
See Also
Examples
data(BigCity)
attach(BigCity)
estima <- data.frame(Income, Expenditure)
# The population totals
colSums(estima)
# Some parameters of interest
table(Poverty, Zone)
xtabs(Income ~ Poverty + Zone)
# Correlations among characteristics of interest
cor(estima)
# Some useful histograms
hist(Income)
hist(Expenditure)
# Some useful plots
boxplot(Income ~ Poverty)
barplot(table(Employment))
pie(table(MaritalST))