Learn R Programming

FVDDPpkg (version 0.1.2)

posterior.sample: Draw values from the posterior distribution FVDDP

Description

Draw values from the posterior distribution FVDDP

Usage

posterior.sample(fvddp, N)

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.

Arguments

fvddp

The instance of class fvddp the values are drawn from.

N

The amount of values to draw.

Examples

Run this code
#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)

Run the code above in your browser using DataLab