Description Usage Arguments Value Examples
Compute the intercept-only model for comparison purposes
1 2 | compute_null_model(x, iterations = 10000, chains = 1, thinning = 1,
burn = 1000)
|
x |
blm object |
iterations |
number of iterations used to sample the model |
chains |
number of separate chains used to sample the model |
thinning |
thinning parameter |
burn |
number of examples to burn |
blm object containing instructions on how to sample the null model
1 2 3 4 5 6 | data("directors")
fit <- blm("Compensation ~ Age", data=directors) %>%
compute_null_model(iterations=10000, burn=1000) %>%
sample_posterior()
# Plot the null model
plot(fit, "nullmodel")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.