Skip to contents

This function returns the fitted values.

Usage

# S3 method for bellreg
fitted(object, ...)

Arguments

object

an object of the class bellreg.

...

further arguments passed to or from other methods.

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.669858  9.283415 13.115769  5.480843 10.490032 14.048990  4.493762
#>  [8]  8.918554  6.839668  5.449538  9.177672  6.216913 14.792229  6.422015
#> [15]  9.125253  6.852740  7.553595 13.368596 15.077373  7.539186  7.256720
#> [22]  3.381105  9.390376  3.705616 10.960958  5.439143 10.898354 11.193600
#> [29]  6.892105 10.510080 16.492947  5.938461
# }