mse {simMetric} | R Documentation |
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, ...)
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 |
... |
Additional arguments to be ignored. |
Value
A named vector containing the estimate and the Monte Carlo standard error for the bias.
Examples
mse(true_value=0, estimates=rnorm(100))
[Package simMetric version 0.1.1 Index]