tests/testthat/test_bellreg.R

library(bellreg)

# ML approach:
data(faults)
mle <- bellreg(nf ~ lroll, data = faults, approach = "mle")
summary(mle)
coef(mle)
vcov(mle)
confint(mle)

# Bayesian approach:
bayes <- bellreg(nf ~ lroll, data = faults, approach = "bayes", refresh = FALSE)
summary(bayes)

Try the bellreg package in your browser

Any scripts or data that you put into this service are public.

bellreg documentation built on May 29, 2024, 1:31 a.m.