Learn R Programming

SMFI5 (version 1.0)

LogLikFeller: Estimates the parameters of the Feller process.

Description

Loglikelihood for the CIR model

dr = alpha(beta-r)dt + sigma sqrt(r) dW. The time scale is in years and the units are percentages.

Usage

LogLikFeller( theta, R, days, n)

Arguments

theta
Vector of parameters: (alpha,beta,sigma,q1,q2).
R
Observed returns.
days
Number of days in a year.
n
Length of the time series.

Value

LL
-1 x Log-likelihood (to be minimized).

References

Chapter 5 of 'Statistical Methods for Financial Engineering, B. Remillard, CRC Press, (2013).