MSE: Calculates the Mean Squared Error of two vectors or matrices

Description Usage Arguments Details Value

View source: R/error_functions.R

Description

Calculates the Mean of the squared errors, or the difference between the two input vectors or matrices.

Usage

1
MSE(target, predicted)

Arguments

target

A m-by-n matrix or length m vector of target values.

predicted

A m-by-n matrix or length m vectorof predicted values.

Details

When the number is higher than the number of variables in the internal X matrix, the function might display unwanted behaviour.

Value

A Double indicating the Mean Squared Error


GeertPostma/pathmodelr documentation built on Oct. 5, 2021, 4:17 p.m.