# \donttest{
# build simple vector-autoregressive mlts model for two time-series variables
var_model <- mlts_model(q = 2)
# fit model with (artificial) dataset ts_data
fit <- mlts_fit(
model = var_model,
data = ts_data,
ts = c("Y1", "Y2"), # time-series variables
id = "ID", # identifier variable
time = "time", # time variable
tinterval = 1, # interval for approximation of continuous-time dynamic model,
monitor_person_pars = TRUE # person parameters need to be sampled for standardization
)
# inspect standardized parameter estimates
mlts_standardized(fit)
# }
Run the code above in your browser using DataLab