ppsample {bspec} | R Documentation |
Draws a sample from the posterior predictive distribution specified by
the supplied bspec
object.
ppsample(x, ...) ## S3 method for class 'bspec': ppsample(x, start=x$start, ...)
x |
a bspec object specifying the posterior
distribution from which to sample. |
start |
the start time of the resulting time series. |
... |
A time series (ts
) object of the same kind (with respect to
sampling rate and sample size) as the data the posterior distribution
is based on.
Christian Roever, bspec@web.de
par(mfrow=c(2,1)) plot(lh, main="'lh' data") plot(ppsample(bspec(lh)), main="posterior predictive sample") par(mfrow=c(1,1))