mad_model: MAD - Mean Absolute Deviation

Description Usage Arguments

Description

Returns the average difference between a model's prediction and the actual testing data.

Usage

1
mad_model(model, raw_data, expo = TRUE)

Arguments

model

A fitted model (e.g. lm, glm, etc.)

raw_data

The results that you wish to compare the predicted results

expo

Whether the results of the prediction should be raised to the exponent. Such as when you fit a model with the log of the dependent variable. Default "expo = TRUE".


cdeterman/HGTools documentation built on May 13, 2019, 2:34 p.m.