build_B_spline_basis: Construct B-spline basis This is an internal function which...

Description Usage Arguments See Also

View source: R/pclm_fit.R

Description

Construct B-spline basis This is an internal function which constructs B-spline basis to be used in pclm estimation

Usage

1
build_B_spline_basis(X, Y, kr, deg, diff, type)

Arguments

X

vector with ages

Y

vector with years

kr

Knot ratio. Number of internal intervals used for defining 1 knot in B-spline basis construction. See MortSmooth_bbase.

deg

Degree of the splines needed to create equally-spaced B-splines basis over an abscissa of data.

diff

An integer indicating the order of differences of the components of PCLM coefficients. Default value: 2.

type

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

See Also

MortSmooth_bbase


ungroup documentation built on June 28, 2021, 5:08 p.m.