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