This function returns the fitted values.
Usage
# S3 method for class 'bellreg'
fitted(object, ...)
Value
a vector with the fitted values (for MLE approach) or a matrix containing the posterior sample of the fitted values.
Examples
# \donttest{
data(faults)
fit <- bellreg(nf ~ lroll, data = faults)
fitted.values(fit)
#> [1] 7.669802 9.283369 13.115758 5.480781 10.489996 14.048990 4.493701
#> [8] 8.918506 6.839609 5.449477 9.177625 6.216853 14.792238 6.421955
#> [15] 9.125206 6.852681 7.553539 13.368588 15.077385 7.539130 7.256663
#> [22] 3.381047 9.390331 3.705557 10.960926 5.439082 10.898321 11.193570
#> [29] 6.892046 10.510044 16.492979 5.938400
# }