refit: Refit a model on a new dataset

Description Usage Arguments Value Methods (by class)

Description

This is roughly synonymous to update with update(model, data = new_data).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
refit(model, new_data, ...)

## S3 method for class 'regsubsets'
refit(model, new_data, ...)

## S3 method for class 'gbm'
refit(model, new_data, ...)

## S3 method for class 'glmnet'
refit(model, new_data, ...)

Arguments

model

a fitted model object for which refit and get_selected methods are defined

new_data

the new data

...

further arguments handed over to methods

Value

the fitted model object for newdata

Methods (by class)


fabian-s/stabpath documentation built on May 16, 2019, 9:58 a.m.