Description Usage Arguments Examples
This function runs a drop-one jacknife to estimate relative variable importance.
1 2 3 4 5 6 7 8 9 | gam_jacknife(
dataset,
exp.names,
indicator,
family,
base_k = -1,
smoother = "cr",
n.param.max = 3
)
|
dataset |
is a data frame of response and explanatory covariates |
exp.names |
is a vector of explanatory covariate names, matching colnames of dataset |
indicator |
is the name of the focal response variable |
family |
specifies the fitted distribution (e.g. 'gaussian', 'poisson', 'binomial') |
base_k |
is the number of knots for each smoother term. Defaults to -1, where mgcv uses generalized cross-validation |
smoother |
is the spline basis, defaults to 'cr' |
n.param.max |
is the maximum number of fitted explanatory covariates, defaults to 3 |
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.