R/reorderLags.R

Defines functions reorderLags

Documented in reorderLags

reorderLags <- function(Lags, K, newOrder)
{
    newLags = Lags
    for (clustCounter in 1:K)
    {
        newLags[newOrder[clustCounter]] =  Lags[clustCounter]
        
    }
    
    invisible(newLags)
    
}

Try the ClusterVAR package in your browser

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

ClusterVAR documentation built on April 4, 2025, 2:20 a.m.