Skip to contents

This function estimates the parameters of a VAR model using Mplus.

Usage

FitMLVARMplus(data, p = 1, mplus_bin, iter = 5000L)

Arguments

data

Numeric matrix. The time series data with dimensions t by k, where t is the number of observations and k is the number of variables.

p

Positive integer. Number of lags.

mplus_bin

Character string. Path to the Mplus binary.

iter

Positive integer. Maximum number of iterations for each MCMC chain.

Author

Ivan Jacob Agaloos Pesigan

Examples

if (FALSE) {
FitMLVARMplus(data = dat_ml_p1, p = 1, mplus_bin = "mplus")
FitMLVARMplus(data = dat_ml_p2, p = 2, mplus_bin = "mplus")
}