cv.model: cv.model

Description Usage Arguments Value

View source: R/cv.model.R

Description

Use k-fold cross validation to evaluate the goodness of fit for a model

Usage

1
cv.model(df, valuecol, k, model, gof)

Arguments

df

dataframe, limited to independent/dependent variables

valuecol

string, name of column with water quality values

k

numeric, number of folds (will not be used if there are fewer observations than folds)

model

formula

gof

string, measure of the goodness of fit (PBIAS, R2, RMSE)

Value

list of training and testing goodness of fit


RSAlgaeR documentation built on May 2, 2019, 3:48 p.m.