get_delta: Calculate household-specific constants

Description Usage Arguments Details Value Examples

View source: R/functions_poisson.r

Description

get_delta calculates household-specific constants for the poisson model

Usage

1
get_delta(wh, beta, xmat)

Arguments

wh

vector of household total weights, length h (see h, s, k definitions below)

beta

s x k matrix of parameters to poisson model

xmat

h x k matrix of data for households

h

number of households (or individuals, records, tax returns, etc.)

s

number of states (or other geographies or subgroups)

k

number of characteristics each household has

Details

See (Khitatrakun, Mermin, Francis, 2016, p.5)

Value

A vector of household-specific constants of length h

Examples

1
2
3
p <- make_problem(h=10, s=3, k=2)
beta <- matrix(0, nrow=p$s, ncol=p$k)
get_delta(p$wh, beta, p$xmat)

donboyd5/microweight documentation built on Aug. 17, 2020, 4:48 p.m.