Description Usage Arguments Value

Options for penalty setup in the pre-processing

1 2 3 4 5 6 7 8 9 10 |

`defaultSmoothing` |
function applied to all s-terms, per default (NULL)
the minimum df of all possible terms is used. Must be a function the smooth term
from mgcv's smoothCon and an argument |

`df` |
degrees of freedom for all non-linear structural terms (default = 7);
either one common value or a list of the same length as number of parameters;
if different df values need to be assigned to different smooth terms,
use df as an argument for |

`null_space_penalty` |
logical value;
if TRUE, the null space will also be penalized for smooth effects.
Per default, this is equal to the value give in |

`absorb_cons` |
logical; adds identifiability constraint to the basisi.
See |

`anisotropic` |
whether or not use anisotropic smoothing (default is TRUE) |

`zero_constraint_for_smooths` |
logical; the same as absorb_cons,
but done explicitly. If true a constraint is put on each smooth to have zero mean. Can
be a vector of |

`hat1` |
logical; if TRUE, the smoothing parameter is defined by the trace of the hat matrix sum(diag(H)), else sum(diag(2*H-HH)) |

`sp_scale` |
function of response; for scaling the penalty (1/n per default) |

Returns a list with options

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.