R/ARorder.R

Defines functions ARorder

Documented in ARorder

ARorder <-
function(x,pmax,type)
{
x<-as.matrix(x)
if (type=="const")
M <- AR.order(x,pmax)
if (type=="const+trend")
M <- ART.order(x,pmax)
rownames(M$Criteria) <- paste("",1:pmax,sep="") 
rownames(M$ARorder) <- "p*"; colnames(M$ARorder) <- c("aic","bic","hq")
return(list(ARorder=M$ARorder,Criteria=M$Criteria))
}

Try the BootPR package in your browser

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

BootPR documentation built on Aug. 31, 2023, 9:08 a.m.