Description Usage Arguments Details See Also
Fits a random intercept model with the grouping variable id
to the residuals
of gbm
fit to the remaining predictors.
1 |
y |
vector of observations of length |
X |
matrix or data frame of predictors |
id |
name or index of grouping variable in x (can have missing values) |
... |
arguments passed to |
cv.folds |
number of cross validation folds |
mc.cores |
number of cores to use in |
subset |
subset of observations tuning by cross validation will be carried out over expand.grid(...) |
The gbm model is cross-validated over a grid of all meta-parameters,
as in gbm_grid
. The model is fit to all predictors, except the grouping
variable. Subsequently, a simple random intercept model (from lmer
) is
fit to the residuals, using id
as a grouping variable, with the formula
r ~ 1 + (1|id)
. A predict
, and influence
methods are provided
for computing predictions and influence of predictors.
gbm_grid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.