posterior.sample {FVDDPpkg} | R Documentation |
Draw values from the posterior distribution FVDDP
Description
Draw values from the posterior distribution FVDDP
Usage
posterior.sample(fvddp, N)
Arguments
fvddp |
The instance of class |
N |
The amount of values to draw. |
Value
A vector of length N
of values drawn either from the centering of the
FVDDP (the input) or from the empirical probability measure generated by past
observations. The difference between this function and predictive.struct()
is that in this case the process is not update with respect to any drawn value.
Examples
#create a dummy process and sample some values from it
FVDDP = initialize(7, function(x) rbeta(x, 3,3),
function(x) dgamma(x, 3,3), FALSE)
FVDDP = update(FVDDP, rep(0:1, 2))
posterior.sample(fvddp = FVDDP, N = 100)
[Package FVDDPpkg version 0.1.2 Index]