R/createOutputList.R

Defines functions createOutputList

Documented in createOutputList

createOutputList <- function(LagCombinations,
                             Rand,
                             Rational,
                             Initialization,
                             PreviousSol)
{
    OutputListLarge =  vector(mode = "list", LagCombinations)
    OutputListSmall = vector(mode = "list", Rand + as.numeric(Rational) + as.numeric(!is.null(Initialization))
                                            + as.numeric(PreviousSol)) # to store output of all starts

    for (smallList in 1:LagCombinations) OutputListLarge[[smallList]] = OutputListSmall

    return(OutputListLarge)

} # eoF

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.