Learn R Programming

deepregression (version 2.2.0)

create_penalty: Function to create mgcv-type penalty

Description

Function to create mgcv-type penalty

Usage

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

Value

a list with penalty parameter and penalty matrix

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)