build_P_matrix: Construct Penalty Matrix

View source: R/pclm_fit.R

build_P_matrixR Documentation

Construct Penalty Matrix

Description

Construct Penalty Matrix

Usage

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