build_C_matrix: Build Composition Matrices

View source: R/pclm_fit.R

build_C_matrixR Documentation

Build Composition Matrices

Description

Build Composition Matrices

Usage

build_C_matrix(x, y, nlast, offset, out.step, type)

Arguments

x

Vector containing the starting values of the input intervals/bins. For example: if we have 3 bins [0,5), [5,10) and [10, 15), x will be defined by the vector: c(0, 5, 10).

y

Vector with counts to be ungrouped. It must have the same dimension as x.

nlast

Length of the last interval. In the example above nlast would be 5.

offset

Optional offset term to calculate smooth mortality rates. A vector of the same length as x and y. See \insertCiterizzi2015;textualungroup for further details.

out.step

Length of estimated intervals in output. Values between 0.1 and 1 are accepted. Default: 1.

type

Type of PCLM model. Options: "1D", "2D" for univariate and two-dimensional model respectively.


mpascariu/ungroup documentation built on Jan. 31, 2024, 1:59 a.m.