MSE_trim: Calculate (trimmed) mean-squared error.

Description Usage Arguments Value Examples

Description

Calculate (trimmed) mean-squared error.

Usage

1
MSE_trim(x, truth, trim = 0)

Arguments

x

Vector of estimates.

trim

Fraction of estimates to discard (half from each tail) before calculating MSE (defaults to zero)

true

True parameter value.

Value

(trimmed) mean-squared error

Examples

1
2
3
x <- rnorm(1000) + 0.5
MSE_trim(x, 0)
MSE_trim(x, 0, 0.1)

fditraglia/fmscr documentation built on May 16, 2019, 12:10 p.m.