create_penalty: Function to create mgcv-type penalty

View source: R/psplinelayer.R

create_penaltyR Documentation

Function to create mgcv-type penalty

Description

Function to create mgcv-type penalty

Usage

create_penalty(evaluated_gam_term, df, controls, Z = NULL)

Arguments

evaluated_gam_term

a list resulting from a smoothConstruct call

df

integer; specified degrees-of-freedom for the gam term

controls

list; further arguments defining the smooth

Z

matrix; matrix for constraint(s)

Value

a list with penalty parameter and penalty matrix


deepregression documentation built on Jan. 18, 2023, 1:11 a.m.