Learn R Programming

bellreg (version 0.0.2.1)

fitted.bellreg: Extract Model Fitted Values

Description

This function returns the fitted values.

Usage

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

Value

a vector with the fitted values (for MLE approach) or a matrix containing the posterior sample of the fitted values.

Arguments

object

an object of the class bellreg.

...

further arguments passed to or from other methods.

Examples

Run this code
# \donttest{
data(faults)
fit <- bellreg(nf ~ lroll, data = faults)
fitted.values(fit)
# }

Run the code above in your browser using DataLab