metricsloopmix: metricsloopmix

View source: R/metricsloopmix.R

metricsloopmixR Documentation

metricsloopmix

Description

metricsloopmix

Usage

metricsloopmix(d, var, MO, PF = TRUE, s)

Arguments

d

a data frame.

var

a vector of varibales in the data set.

MO

is a data frame where: the first column define the model type, such as "lm" or "lmer" the second column define the model as "x + y", or "x + y + (1|random)", or "x + y, family = Gamma". Varibales have to be present in the dataset d. the third column define the predict function. the fourth column define the type of prediction.

PF

if TRUE use the prediction function from the data frame (3rd column of MO object), otherwise it uses "predict".

s

significant digits empty: return all values. number 1 to 6: will return the desired significant digits. "std1": will return number as character in a predefined format.

Value

a data frame with different parameters to evaluate the model


giuliogiagnoni/modRMSE documentation built on Oct. 3, 2023, 3:29 p.m.