compute_null_model: Compute the intercept-only model for comparison purposes

Description Usage Arguments Value Examples

View source: R/generics.R

Description

Compute the intercept-only model for comparison purposes

Usage

1
2
compute_null_model(x, iterations = 10000, chains = 1, thinning = 1,
  burn = 1000)

Arguments

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

Value

blm object containing instructions on how to sample the null model

Examples

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")

JasperHG90/blm documentation built on Sept. 4, 2019, 11:16 a.m.