`R/graduate.R`

`graduate_beers_expand.Rd`

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.

Beers HS (1945).
“Modified-interpolation formulas that minimize fourth differences.”
*Record of the American Institute of Actuaries*, **34**(69), 14--20.
Siegel Jacob S, Swanson David A (eds.) (2004).
*The Methods and Materials of Demography*, 2 edition.
Elsevier Academic Press, California, USA, San Diego, USA.

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))#> [1] 521 105#> [1] 525 105coefso <- graduate_beers_expand(pop5_mat, OAG = TRUE, method = "ord") # how to use (under the hood in beers()