R/mycorMatrix.R

Defines functions mycorMatrix

Documented in mycorMatrix

mycorMatrix <-
function(mycorcoefs,myDATA){
    myDATA <- data.frame(myDATA)
    index <- myDATA$index
    string <- names(mycorcoefs)
    substring <- substring(string,1,3)
    ar.ord <- length(substring[substring=="Phi"])
    ma.ord <- length(substring[substring=="The"])
    csARMA <- corARMA(mycorcoefs, form = ~index, p = ar.ord,q=ma.ord);
    csARMA <- Initialize(csARMA, data = myDATA);

    corMatrix(csARMA);
}

Try the eBsc package in your browser

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

eBsc documentation built on May 31, 2023, 5:40 p.m.