tags:

views:

39

answers:

2

I am looking for an example of the r code for using Ornstein-Uhlenbeck to estimate time for mean reversion when considering cointegrated securities

+1  A: 

There are several packages on CRAN that have the Ornstein-Uhlenbeck procedure. I would suggest using rseek to find them, then see which package best suits your needs.

Joshua Ulrich
+1 Rseek is always a good step.
Shane
+2  A: 

I suggestion reading through this thread on the r-sig-finance list which directly addresses your question.

Shane
That came up in my rseek results. ;-)
Joshua Ulrich
@Joshua Absolutely; just wanted to highlight it since it goes over much more than just Ornstein-Uhlenbeck.
Shane