R/calculateNPara.R

Defines functions calculateNPara

Documented in calculateNPara

calculateNPara <- function(Lags, nDepVar, K, BnumbVersions, ncovariates)
{
    parasA = sum(Lags) * (nDepVar * nDepVar) # number of parameters estimated in A
    parasSigma = K * (nDepVar * (nDepVar + 1) / 2)# number of parameters estimaed in Sigma
    parasB = BnumbVersions * ncovariates * nDepVar
    nPara = (K - 1) + parasB + parasA + parasSigma # Total number of Paramters for taus, Bs, As and Sigmas 
    # Number of Parameters needed for B depend on (BNumbVersions)
    
    invisible(nPara)
    
}

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.