R/Stine.Shaman.R

Defines functions Stine.Shaman

Documented in Stine.Shaman

Stine.Shaman <-
function(x,p,h,type)
{
x<-as.matrix(x)
if (type=="const")
M <- Shaman.Stine(x,p,h)
if (type=="const+trend")
M <- Shaman.StineT(x,p,h)
rownames(M$coef) <- ARnames(p,type); colnames(M$coef) <- "coefficients"
colnames(M$forecast) <- "forecasts"; rownames(M$forecast) <- paste("h",1:h,sep="")
return(list(coef=M$coef,resid=M$resid,forecast=M$forecast))
}

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.