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

View source: R/pclm_fit.R

build_B_spline_basisR Documentation

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

Description

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

Usage

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 May 29, 2024, 11:55 a.m.