Learn R Programming

RTL (version 1.3.3)

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. list

Arguments

spread

Spread time series. tibble

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