posteriorDistr.bma {BMAmevt} | R Documentation |
Builds an empirical distribution defined as a sum of weighted Dirac masses from posterior samples in individual models.
posteriorDistr.bma(postweights = c(0.5, 0.5), post.distrs = list())
postweights |
a vector of positive real numbers, summing to one: the posterior weights (in the same order as the elements of |
post.distrs |
A list of same length as |
A matrix with two rows and as many columns as the sum of the lengths of the elements of post.distrs
. The second line contains the weighted posterior sample in the BMA; the first line contains the weights to be assigned to each corresponding value on the second one.