# Create artificial data
k <- 3
tt <- 4
u <- matrix(1:(k * tt))
omega_i <- Matrix(diag(1:3, k))
# Generate input data (constant parameters)
covar_prepare_data(u, omega_i, k, tt, FALSE)
# Generate input data (time varying parameters)
covar_prepare_data(u, omega_i, k, tt, TRUE)
Run the code above in your browser using DataLab