sum_to_geo: Sum up the number of observations based on a geography

Description Usage Arguments

View source: R/poststrat.R

Description

Sum up the number of observations based on a geography

Usage

1
sum_to_geo(data, geovar, predvar, fracvar, name)

Arguments

data

the dataset that has all the variables

geovar

the variable indicating the geography to sum up to

predvar

the variable for the predicted value

fracvar

the variable that indicates the relative size of the cell, a string

name

name for the new var, a string


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