Learn R Programming

bsamGP (version 1.1.2)

fitted.bsad: Compute fitted values for a bsad object

Description

Computes pointwise posterior means and \(100(1-\alpha)\)% credible intervals of the fitted Bayesian spectral analysis density estimation model.

Usage


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

Arguments

object

a bsad 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 object of class fitted.bsad containing posterior means and \(100(1-\alpha)\)% credible intervals. Generic function plot displays the results of the fit.

The output list includes the following objects:

fpar

posterior estimates for parametric model.

fsemi

posterior estimates for semiparametric model.

fsemiMaxKappa

posterior estimates for semiparametric model with maximum number of basis.

Details

None.

See Also

bsad

Examples

Run this code
# NOT RUN {
## See examples for bsad
# }

Run the code above in your browser using DataLab