my_mse: my_mse

View source: R/SupportFunctions.R

my_mseR Documentation

my_mse

Description

Returns the mean squared error between two vectors

Usage

my_mse(x, y)

Arguments

x

vector

y

vector

Value

Mean square error between the two vectors x and y

Examples

#Simulate two vectors of i.i.d.~standard normal data
set.seed(456)
x <- rnorm(100)
y <- rnorm(100)
#Compute the mean squared error between both vectors
my_mse(x,y)

ambit documentation built on Aug. 19, 2022, 5:19 p.m.