ppsample | 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 |
start |
the start time of the resulting time series. |
... |
currently unused. |
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, christian.roever@med.uni-goettingen.de
bspec
, sample.bspec
par(mfrow=c(2,1)) plot(lh, main="'lh' data") plot(ppsample(bspec(lh)), main="posterior predictive sample") par(mfrow=c(1,1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.