Skip to contents

Generic method for computing the mean squared error (MSE) of an estimator, `mse(x) = E[(x-mu)^2]` where `mu` is the true parameter value.

Usage

mse(x, theta)

Arguments

x

the object to compute the MSE of

theta

the true parameter value