# NOT RUN {
# sample some data
N <- 100
dat <- data.frame(y = rnorm(N), x = rnorm(N), sdx = abs(rnorm(N, 1)))
# fit a simple error-in-variables model
fit <- brm(y ~ me(x, sdx), data = dat, save_mevars = TRUE)
summary(fit)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab