## ---- test-simStateSpace-sim-ssm-0-fixed lapply( X = 1, FUN = function(i, text) { message(text) # prepare parameters set.seed(42) k <- p <- 3 iden <- diag(k) iden_sqrt <- chol(iden) null_vec <- rep(x = 0, times = k) n <- 5 mu0 <- null_vec sigma0_sqrt <- iden_sqrt alpha <- null_vec beta <- diag(x = 0.50, nrow = k) psi_sqrt <- iden_sqrt nu <- null_vec lambda <- iden theta_sqrt <- chol(diag(x = 0.50, nrow = k)) time <- 50 burn_in <- 10 ssm <- SimSSM0Fixed( n = n, mu0 = mu0, sigma0_sqrt = sigma0_sqrt, alpha = alpha, beta = beta, psi_sqrt = psi_sqrt, nu = nu, lambda = lambda, theta_sqrt = theta_sqrt, time = time, burn_in = burn_in ) Sim2Matrix(ssm, eta = TRUE) Sim2Matrix(ssm, eta = FALSE) ssm <- SimSSM0( mu0 = mu0, sigma0_sqrt = sigma0_sqrt, alpha = alpha, beta = beta, psi_sqrt = psi_sqrt, nu = nu, lambda = lambda, theta_sqrt = theta_sqrt, time = time, burn_in = burn_in ) Sim2Matrix(ssm, eta = TRUE) Sim2Matrix(ssm, eta = FALSE) }, text = "test-simStateSpace-sim-ssm-0-fixed" )