model_step: Create model and calculate model metric

Description Usage Arguments Value

Description

Call train if control_method is anything else than "none", otherwise call lm directly and calculate the metrics.

Usage

1
model_step(d, control_method)

Arguments

d

data frame as given by subsamples

control_method

argument passed to trainControl as its "method" argument

...

arguments passed to trainControl

Value

Named numeric vector of length two with Rsquared and RMSE


eribul/r2samplesize documentation built on May 16, 2019, 8:25 a.m.