count_cellsize: Given a individual level population dataset and variables of...

Description Usage Arguments Examples

View source: R/target_count.R

Description

Given a individual level population dataset and variables of interest, count the number of population and the fraction of that subpopulationin the geography of interest

Usage

1
count_cellsize(size, popvar, geovar, ...)

Arguments

size

A population, or census data frame

popvar

The variable that indicates the population

geovar

The variable that indicates the final grouping variable of interest

...

variables that are in the regression

Examples

1
2
size <- read_csv("https://www.shirokuriwaki.com/datasets/popsize08.csv")
size_cell <- count_cellsize(size, popvar = pop2008, geovar = stt, eth, age, sex, inc, edu)

kuriwaki/sparseregMRP documentation built on March 20, 2020, 9:58 p.m.