fitted.metapred: Extract Model Fitted Values

Description Usage Arguments Details Author(s)

View source: R/metapred.R

Description

Extract the fitted values of a metapred object. By default returns fitted values of the model in the cross-validation procedure.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S3 method for class '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.

Details

Function still under development, use with caution.

Only returns type = "response".

Author(s)

Valentijn de Jong


metamisc documentation built on Oct. 13, 2021, 3 p.m.