create_penalty | R Documentation |
Function to create mgcv-type penalty
create_penalty(evaluated_gam_term, df, controls, Z = NULL)
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) |
a list with penalty parameter and penalty matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.