Extract the fitted values of a metapred
object. By default returns fitted values of the model in the
cross-validation procedure.
# S3 method for metapred
fitted(
object,
select = "cv",
step = NULL,
model = NULL,
as.stratified = TRUE,
type = "response",
...
)
object of class metapred
character. Select fitted values from "cv" (default) or from "global" model.
character or numeric. Name or number of step to select if select
= "cv". Defaults to best step.
character or numeric. Name or number of model to select if select
= "cv". Defaults to
best model.
logical. select
= "cv" determines whether returned predictions are stratified in a list
(TRUE
, default) or in their original order (FALSE
).
character. Type of fitted value.
For compatibility only.
Valentijn de Jong
Function still under development, use with caution.
Only returns type = "response".