R: Mean Square Error

mse {ModelMetrics} | R Documentation

## Mean Square Error

### Description

Calculates the mean square error

### Usage

    mse(actual, predicted)

### Arguments

`actual` | A vector of the labels
`predicted` | A vector of predicted values

### Examples

    data(testDF)
    glmModel <- glm(y ~ ., data = testDF, family="binomial")
    Preds <- predict(glmModel, type = 'response')

    mse(testDF$y, Preds)

[Package ModelMetrics version 1.1.0 Index]