data.table::setDTthreads(1) # For CRAN
# two channel model with correlated random effects for responses x and y
obs(y ~ 1 + random(~1), family = "gaussian") +
obs(x ~ 1 + random(~1 + z), family = "poisson") +
random_spec(correlated = TRUE)
Run the code above in your browser using DataLab