MDA: MDA Function

Description Usage Arguments Value Examples

View source: R/functions_measures.R

Description

This function allows you to calculate Mean Directional Accuracy (MDA) which helps to find out how much prediction is following the trend of actual

Usage

1
MDA(actual, pred)

Arguments

actual

Actual value

pred

Predicted value

Value

MDA value

Examples

1
2
3
data(mtcars)
reg <- lm(mpg ~ ., data = mtcars)
MDA(actual = mtcars$mpg,pred=reg$fitted.values)

Somenath24/RegrMetrics documentation built on May 17, 2019, 6:34 p.m.