Description Usage Arguments Examples
Plotting is only possible if you choose to return 'return_samples=TRUE' in evaluate_ppc()
1 2 3 |
ppc |
a posterior predictive check object (ppc) |
type |
one of 'normality', 'heteroskedasticity' or 'independence' |
1 2 3 4 5 6 7 8 | data("directors")
fit <- blm("Compensation ~ Age", data=directors) %>%
sample_posterior()
# Calculate PPC
fit <- fit %>%
evaluate_ppc(return_samples=TRUE)
# Plot
plot(fit %>% get_value('ppc'), 'normality')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.