Nothing
# Estimate the correlation between two variables in the debate dataset
data(debate, package = "BayesRTMB")
fit_corr <- rtmb_corr(cbind(sat, perf), data = debate)
\donttest{
mcmc_corr <- fit_corr$sample(sampling = 500, warmup = 500, chains = 2)
mcmc_corr$summary()
bf_corr <- mcmc_corr$bayes_factor(fixed = list(corr = 0))
print(bf_corr)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.