brazil: Subset of the 2010 census in Brazil

Description Usage Format Source References Examples

Description

The dataset contains 350,696 individual observations from the 2010 census in Brazil. This is only a subset of variables and observations of the original census that can be used as an example for the functionality of the ELLsae package. The full documentation can be found here: http://microdata.worldbank.org/index.php/catalog/2078/study-description.

Usage

1

Format

A data frame with 350696 rows and 11 variables:

hh_inc

household income

geo2_br

inconsistent level two boundaries of Brazil, Municipality 1980 - 2010

year

year of the census

age

The age of a person in years

sex

sex (discrete)

adults

number of adults

children

number of children

religion

indicates the person's religion, including "none"

computer

computer in the household (discrete)

trash

trash disposal (discrete)

urban

Urban-rural status (discrete)

Source

https://international.ipums.org/international/index.shtml

References

Brazilian Institute of Geography and Statistics (IBGE). Brazil Demographic Census 2010. Rio de Janeiro, Brazil: Brazilian Institute of Geography and Statistics (IBGE), 2012.

Examples

1
2
3
4
5
6
7
8
##### one possibility to split the data
brazil <- ELLsae::brazil
#'# generate indexes for the rows to keep. order indexes to keep. 
helper <- sample(x = 1:nrow(brazil), size = nrow(brazil)/5, replace = FALSE)
helper <- sort(helper)
#'#create survey and census set from the originial data using the indexes
survey <- brazil[helper,]
census <- brazil[-helper,]

nikosbosse/ELLsae documentation built on May 18, 2019, 3:43 p.m.