Learn R Programming

RTL (version 1.2.0)

fitOU: Fits a Ornstein–Uhlenbeck process to a dataset

Description

Parameter estimation for Ornstein–Uhlenbeck process

Usage

fitOU(spread)

Value

List of alpha, mu and sigma estimates

Arguments

spread

Spread time series.

Author

Philippe Cote

Examples

Run this code
spread <- simOU(mu = 5, theta = .5, sigma = 0.2, T = 5, dt = 1 / 250)
fitOU(spread)

Run the code above in your browser using DataLab