Ensemble | R Documentation |
Creates an ensemble predictive model from VariableSelection
outputs.
Ensemble(stability, xdata, ydata)
stability |
output of |
xdata |
matrix of predictors with observations as rows and variables as columns. |
ydata |
optional vector or matrix of outcome(s). If |
An object of class ensemble_model
. A list with:
intercept |
a vector of refitted intercepts for the |
beta |
a matrix of beta coefficients from the
|
models |
a list of |
family |
type of regression, extracted from
|
Other ensemble model functions:
EnsemblePredictions()
# Linear regression
set.seed(1)
simul <- SimulateRegression(n = 100, pk = 50, family = "gaussian")
stab <- VariableSelection(xdata = simul$xdata, ydata = simul$ydata, family = "gaussian")
ensemble <- Ensemble(stability = stab, xdata = simul$xdata, ydata = simul$ydata)
# Logistic regression
set.seed(1)
simul <- SimulateRegression(n = 200, pk = 20, family = "binomial")
stab <- VariableSelection(xdata = simul$xdata, ydata = simul$ydata, family = "binomial")
ensemble <- Ensemble(stability = stab, xdata = simul$xdata, ydata = simul$ydata)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.