create_penalty {deepregression}R 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


[Package deepregression version 1.0.0 Index]