modelMetric: modelMetric

Description Usage Arguments Details Author(s) Examples

Description

This function compares model prediction(s) with actual measured by different statistics.

Usage

1
modelMetric(act,pred)

Arguments

act

numeric vector of actual data

pred

numeric vector or data frame. Should have the same length as 'act'. It can also be a data frame that compare different model predictions at the same time.

Details

Currently, it conducts MSE, RMSE, MAE, RMAE, and LogLoss (for clasification) analysis.

Author(s)

Sixiang Hu

Examples

1
2
3
4
5
actual <- rnorm(1000)
y <- rnorm(1000)
z <- rnorm(1000)
pred <- data.frame(model1=y,model2=z)
modelMetric(actual,pred)

SixiangHu/DataMan documentation built on May 9, 2019, 1:48 p.m.