fitVIX: fitVIX - Fit a basic statistical model to VIX data

Description Usage Arguments Value See Also Examples

Description

fitVIX - Fit a basic statistical model to VIX data

Usage

1
fitVIX(Data, fit_type = c("lm", "loess", "smooth.spline"))

Arguments

Data

A VIX object (returned by vix_calc())

fit_type

The type of model required, either linear regression (lm), loess (loess), or smoothing spline (smooth.spline)

Value

Returns a list of class fitVIX which includes the model details as well as fit type used

See Also

letVixShiny, vix_calc,plotvix

Examples

1
2
SampleData <- data.frame('VIX' = runif(450, 9, 9.7))
fitVIX(SampleData, fit_type = 'smooth.spline')

GarvinK/vixr documentation built on May 16, 2019, 7:26 a.m.