build_P_matrix: Construct Penalty Matrix

Description Usage Arguments

View source: R/pclm_fit.R

Description

Construct Penalty Matrix

Usage

1
build_P_matrix(BA, BY, lambda, type)

Arguments

BA

B-spline basis object for age axis

BY

B-spline basis object for year axis

lambda

Smoothing parameter to be used in pclm estimation. If lambda = NA an algorithm will find the optimal values.

type

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


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