build_P_matrix {ungroup}R 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.


[Package ungroup version 1.4.4 Index]