R/dftest.R

dftest <-
function(y){
  out<-summary(ur.df(y, lags=0, type="drift"))
  DFStat <- c(slot(out, "teststat")[1,1])
  names(DFStat) <- "Dickey-Fuller"
  pv <- slot(out, "cval")[1,]
  list(tau =DFStat , criticalValues=pv)
}

Try the mleur package in your browser

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

mleur documentation built on May 1, 2019, 7:31 p.m.