# \donttest{
# Fit a comparison model
x <- Boredom[Boredom$language == "fr", 2:6]
y <- Boredom[Boredom$language != "fr", 2:6]
fit <- bgmCompare(x, y, chains = 2)
# Simulate 100 observations from group 1
new_data_g1 <- simulate(fit, nsim = 100, group = 1)
# Simulate 100 observations from group 2
new_data_g2 <- simulate(fit, nsim = 100, group = 2)
# }
Run the code above in your browser using DataLab