getAreaid: getAreaid

Description Usage Arguments Value Author(s)

Description

Gets the area id from the survey data or generates a new id for the survey. This function also calculates the population size of each area.

Usage

1
2
3
getAreaid(census, census_area_id = FALSE, breaks = FALSE,
  pop_benchmark = FALSE, du_benchmark = FALSE, building_benchmark = FALSE,
  pop_total_col = FALSE, verbose = FALSE)

Arguments

census

binary census survey data

breaks

(optional, default=FALSE) breaks of the categories, needed to estimate the total population of the areas. If FALSE the function will not compute the total population for the simulation areas.

pop_benchmark

(optional, default=FALSE) define the benchmark to be used for the computation of the total population, pass as a vector containing the breaks of the benchmark (e.g. pop_benchmark=c(1,5)). If FALSE the function will compute total population as the mean of the all benchmarks.

pop_total_col

(optional, default=FALSE) col containing the population totals

verbose

(optional, default=FALSE) be verbose

census.area.if

(optional, default=False) position or name of the area id in the survey. If False a new id vector will be generated for the survey.

Value

list(id, pos, pop)

Author(s)

M. Esteban Munoz H.


emunozh/GREGWT documentation built on May 16, 2019, 5:11 a.m.