powered by
Draws a sample from the posterior predictive distribution specified by the supplied bspec object.
bspec
ppsample(x, ...) # S3 method for bspec ppsample(x, start=x$start, ...)
a bspec object specifying the posterior distribution from which to sample.
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.
ts
bspec, sample.bspec
sample.bspec
# NOT RUN { par(mfrow=c(2,1)) plot(lh, main="'lh' data") plot(ppsample(bspec(lh)), main="posterior predictive sample") par(mfrow=c(1,1)) # }
Run the code above in your browser using DataLab