Learn R Programming

bsamGP (version 1.0.1)

fitted.blm: Compute fitted values for a blm object

Description

Computes pointwise posterior means and 95% credible intervals of the fitted Bayesian linear models.

Usage


# S3 method for blm
fitted(object, alpha = 0.05, HPD = TRUE, …)

Arguments

object

a bsam object

alpha

a numeric scalar in the interval (0,1) giving the \(100(1-\alpha)\)% credible intervals.

HPD

a logical variable indicating whether the \(100(1-\alpha)\)% Highest Posterior Density (HPD) intervals are calculated. If HPD=FALSE, the \(100(1-\alpha)\)% equal-tail credible intervals are calculated. The default is TRUE.

not used

Value

A list containing posterior means and 95% credible intervals.

The output list includes the following object:

wbeta

posterior estimates for regression function.

Details

None.

References

Chen, M., Shao, Q. and Ibrahim, J. (2000) Monte Carlo Methods in Bayesian computation. Springer-Verlag New York, Inc.

See Also

blq, blr

Examples

Run this code
# NOT RUN {
## See examples for blq and blr
# }

Run the code above in your browser using DataLab