graduate_beers_expand | R Documentation |
The resulting coefficient matrix is based on the number of rows in Value
which must be in 5-year age groups (not abridged). The final row may be an open
or closed age group, as indicated by the OAG
argument.
graduate_beers_expand(Value, OAG = FALSE, method = "Mod")
Value |
numeric vector, presumably counts in grouped ages |
OAG |
logical, default = |
method |
character. Valid values are |
The Value
vector is a placeholder in this case. This function is
a utility called by the Beers family of functions, where it is most convenient to just pass
in the same matrix being used in those calculations to determine the layout of the coefficient matrix.
beers1945modifiedDemoTools \insertRefsiegel2004methodsDemoTools
coefsOA <- graduate_beers_expand(pop5_mat, OAG = TRUE, method = "mod")
coefsclosed <- graduate_beers_expand(pop5_mat, OAG = FALSE, method = "mod")
dim(graduate_beers_expand(pop5_mat, TRUE))
dim(graduate_beers_expand(pop5_mat, FALSE))
coefso <- graduate_beers_expand(pop5_mat, OAG = TRUE, method = "ord")
# how to use (under the hood in beers()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.