R/FastLoglikelihoodAR.R

`FastLoglikelihoodAR` <-
function(phi, n, CD){
phis<-c(1,-phi)
LL <- -log(DetAR(phi))/2-(n/2)*log(sum(crossprod(phis,CD)*phis)/n)
if (!is.finite(LL)){
   LL<--1e35 }
LL
}

Try the FitAR package in your browser

Any scripts or data that you put into this service are public.

FitAR documentation built on May 2, 2019, 3:22 a.m.