fit: fit the best model according to 'mpTune'

Description Usage Arguments Value See Also

View source: R/fit_mpTune.R

Description

fit the best model according to mpTune

Usage

1
2
3
4
5
6
7
8
9
fit(obj, ...)

## S3 method for class 'mpTune.formula'
fit(obj, formula = obj$data$formula,
  data = obj$data$data, ...)

## S3 method for class 'mpTune'
fit(obj, x = obj$data$x, y = obj$data$y,
  weights = obj$data$weights, model = 1, ...)

Arguments

obj

A mpTune object returned from a call to mpTune

...

Further arguments to be passed to summary.mpTune

formula

Model formula if not in obj

data

Ata if not in obj

x

Design matrix if not in obj

y

Response vector if not in obj

weights

Sample weights if not in obj

model

An interger or model name indicating which model to fit. Default to 1, the best model

Value

A 'bestMpTuneModel' or 'bestMpTuneModel.formula' object with entries:

See Also

See mpTune for examples


linxihui/lazyML documentation built on May 21, 2019, 6:39 a.m.