
Last chance! 50% off unlimited learning
Sale ends in
bsnullinteract
generates bootstrapped null interaction models,
which can be used to derive a reference distribution of the test statistic
calculated with interact
.
bsnullinteract(
object,
nsamp = 10,
parallel = FALSE,
penalty.par.val = "lambda.1se",
verbose = FALSE,
...
)
A list of length nsamp
with null interaction models, to be
used as input for interact
.
object of class pre
.
numeric. Number of bootstrapped null interaction models to be derived.
logical. Should parallel foreach be used to generate initial ensemble? Must register parallel beforehand, such as doMC or others.
character or numeric. Value of the penalty parameter
"lambda.min"
employs the "lambda.min"
may be specified, to employ the pre_object$glmnet.fit
and plot(pre_object$glmnet.fit)
.
logical. should progress be printed to the command line?
Further arguments to be passed to predict.pre
.
Note that computation of bootstrapped null interaction models is
computationally intensive. The default number of samples is set to 10,
but for reliable results argument nsamp
should be set to a higher
value (e.g.,
See also section 8.3 of Friedman & Popescu (2008).
Fokkema, M. (2020). Fitting prediction rule ensembles with R package pre. Journal of Statistical Software, 92(12), 1-30. tools:::Rd_expr_doi("10.18637/jss.v092.i12")
Friedman, J. H., & Popescu, B. E. (2008). Predictive learning via rule ensembles. The Annals of Applied Statistics, 2(3), 916-954, tools:::Rd_expr_doi("10.1214/07-AOAS148").
pre
, interact
set.seed(42)
airq.ens <- pre(Ozone ~ ., data=airquality[complete.cases(airquality),])
nullmods <- bsnullinteract(airq.ens)
interact(airq.ens, nullmods = nullmods, col = c("#7FBFF5", "#8CC876"))
Run the code above in your browser using DataLab