Description Usage Arguments Value
Computes the sum of the column-wise sums of the observation-wise gradient contributions to the fitted GAM in each of the tree nodes. This yields a sum for each coefficients in each node. This sum should be reasonably close to zero. The more the column-wise sum of the observation-wise gradient contribution differts from zero, the more the parameter stability tests w.r.t. to that coefficient will be overpowered.
1 | check_grad(object, return_fits = FALSE)
|
object |
an object of class |
return_fits |
whether fitted GAMs should be returned. |
Returns a matrix with the sum of the observation-wise gradient
contributions, with a row for each node of the tree and a column
for each coefficient. If return_fits = TRUE
, a list with two
components is returned: The first component $grad
contains the
a matrix with the column-wise sums of the gradient contributions. The
second component $fits
contains a list of the node-specific GAM
fits.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.