Computes pointwise posterior means and \(100(1-\alpha)\)% credible intervals of the fitted Bayesian spectral analysis models with Dirichlet process mixture error.
# S3 method for bsamdpm
fitted(object, alpha = 0.05, HPD = TRUE, ...)
A list object of class fitted.bsamdpm
containing posterior means and 95% credible intervals.
Generic function plot
displays the results of the fit.
The output list includes the following objects:
posterior estimate for unknown error distribution over grid points.
posterior estimates for unknown functions over observation.
posterior estimates for unknown functions over grid points.
posterior estimates for parametric part.
posterior estimates for fitted values of response.
a bsamdpm
object
a numeric scalar in the interval (0,1) giving the \(100(1-\alpha)\)% credible intervals.
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
None.
bsaqdpm
, bsardpm
## See examples for bsaqdpm and bsardpm
Run the code above in your browser using DataLab