Learn R Programming

simMetric (version 0.1.1)

mse: Calculate the Mean Squared Error

Description

Calculates the Mean Squared Error of the model estimates from the true value and the Monte Carlo standard error for this estimate.

Usage

mse(true_value, estimates, get = c("mse", "mse_mcse"), na.rm = FALSE, ...)

Value

A named vector containing the estimate and the Monte Carlo standard error for the bias.

Arguments

true_value

The true value which is being estimated.

estimates

A numeric vector containing the estimates from the model(s).

get

A character vector containing the values returned by the function.

na.rm

A logical value indicating whether NA values for estimates should be removed before MSE calculation.

...

Additional arguments to be ignored.

Examples

Run this code
mse(true_value=0, estimates=rnorm(100))

Run the code above in your browser using DataLab