Learn R Programming

mixpack (version 0.3.6)

merge_step: Merging components step

Description

Merging components step

Usage

merge_step(post, omega, lambda, f_omega = NULL, f_lambda = NULL)

Arguments

post
Matrix with the posterior probabilities
omega
String giving the function name used to build the hierarchy. Available functions are: entr, prop, dich
lambda
String giving the function name used to build the hierarchy. Available functions are: entr, demp, demp.mod, coda, coda.norm, prop
f_omega
function with two parameters (v_tau, a). Parameter v_tau is a vector of probabilities, parameter a is the a selected class. omega(v_tau, a) gives the representativeness of element with probabities v_tau to class a
f_lambda
function with three parameters (v_tau, a, b). Parameter v_tau is a vector of probabilities, parameters a and b are classes to be combined.

Value

partition returns a matrix with all values for all possible mergings using functions `omega` and `lambda`