Learn R Programming

pauwels2014 (version 1.0)

sample_function: Generates posterior samples

Description

This generates a posterior sample based on the data and global parameters defined in its input.

Usage

sample_function(knobj)

Arguments

knobj
A knowledge list. See knobjs.

Value

A matrix which row represent a parameter named numeric vector in log space. Its distribution is supposed to be closed to the posterior distribution defined by knobj.

Details

This function is the same as, sample_function_multi_mod_weight. This is the sampling function used by design strategies. It can be changed to modify the sampling strategy (e.g. sample_function_single_mod).

See Also

sample_function_multi_mod_weight, sample_function_single_mod