Description Usage Arguments Details Value Examples
View source: R/functions_poisson.r
targets_mat
calculates s x k matrix of targets
1 | targets_mat(betavec, wh, xmat, s)
|
betavec |
vector parameters to poisson model, length s * k (see h, s, k definitions below) |
wh |
vector of household total weights, length h |
xmat |
h x k matrix of data for households |
s |
number of states (or other geographies or subgroups) |
See (Khitatrakun, Mermin, Francis, 2016)
number of households (or individuals, records, tax returns, etc.)
number of states (or other geographies or subgroups)
number of characteristics each household has
s x k matrix of targets
1 2 3 | p <- make_problem(h=10, s=3, k=2)
betavec <- rep(0, p$s * p$k)
targets_mat(betavec, p$wh, p$xmat, p$s)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.