Quantitative finance collector
C++ Matlab VBA/Excel Java Mathematica R/Splus Net Code Site Other
Jan 18

Maximum likelihood estimation in R

Posted by abiao at 17:58 | Code » R/Splus | Comments(2) | Reads(15085)
Maximum likelihood estimation can be implemented like Quasi-maximum likelihood in Matlab, You can also write an R function which computes out the likelihood function. As always in R, this can be done in several different ways.

One issue is that of restrictions upon parameters. When the search algorithm is running, it may stumble upon nonsensical values - such as a sigma below 0 - and you do need to think about this. One traditional way to deal with this is to "transform the parameter space". As an example, for all positive values of sigma, log(sigma) ranges from -infinity to +infinity. So it's safe to do an unconstrained search using log(sigma) as the free parameter.

For detail about methodology and sample codes see http://www.mayin.org/ajayshah/KB/R/documents/mle/mle.html.


Tags:
i need somone to make me a program in r about model Regime-switching GARCH according journal Bauwens(2006).Please sent to my email the program ko_trex@yahoo.com!!!Thanks for your kindness,may God bless you.
Must be R code? there is Matlab codes for regime-switching GARCH volatility prediction, http://www.mathfinance.cn/forecast-volatility-regime-switching-GARCH-model/
Pages: 1/1 First page 1 Final page
Add a comment
Emots
Enable HTML
Enable UBB
Enable Emots
Hidden
Remember
Nickname   Password   Optional
Site URI   Email   [Register]