# NOT RUN {
## Specifying marginal distributions for integration
df <- data.frame(x1_mean = 2, x1_sd = 0.5, x2 = 0.8)
# Distribution parameters are evaluated in the context of the data frame
add_integration(df,
x1 = distr(qnorm, mean = x1_mean, sd = x1_sd),
x2 = distr(qbern, prob = x2),
cor = diag(2))
# }
Run the code above in your browser using DataLab