Simulation error measures.

Share:

Description

Computes error measures between two sets of data.

Usage

1
2
rsse(a, b, v = 1)
sse(a, b, v = 1)

Arguments

a

Dataset 1, of dimension (n x p)

b

Dataset 2: of dimension (1 x p) or a vector.

v

an optional factor to normalise the data before computation of the RSSE.

Value

The RSSE between dataset a and b.

Author(s)

Matt Nunes

Examples

1
2
3
4
a<-matrix(rnorm(1000),ncol=2)
b<-runif(2)

rsse(a,b)