mse: Mean Squared Error

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/mse.R

Description

Computes the mean squared error for various models.

Usage

1
2
3
4
5
6
7
mse(object, ...)
## S3 method for class 'UnivVola'
mse(object, ...)
## S3 method for class 'MultiEWMA'
mse(object, ...)
## S3 method for class 'fGARCH'
mse(object, ...)

Arguments

object

An object of class UnivVola, MultiEWMA or fGARCH.

...

Arguments passed to methods (unused at the moment).

Value

MSE of the corresponding model.

Author(s)

Bernhard Eder

References

Jorion (2007). Value at Risk, 3rd. McGraw-Hill. New York.

See Also

UnivVola, MultiEWMA, garchFit

Examples

1
2
3
4
5
6
7
8
9
# Load returns
data("CRSPday_zoo")
y <- CRSPday_zoo

# Compute univariate volatility model
ma <- UnivVola(y[, 1], type = "MovingAverage", center = TRUE)

# Compute MSE
mse(ma)

LFUrmutils documentation built on Jan. 3, 2020, 3 a.m.