This function reformat the outputs of multinomial mixture distributions parameters.

reconstitution(x, s, n, nbmel)

Arguments

x

vector with cell probabilities estimates for mixtures and bases, along with mixture probilities

s

number of bases

n

number of cell probabilities

nbmel

number of mixtures

Value

This function returns a list of maximum likelihood estimates for the cells of a mixture distribution with:

P matrix of cell probabilities estimates for mixtures

PI matrix of mixture probabilities

GAM matrix of cell probabilities estimates for bases

Author

Olivier Gimenez <olivier.gimenez@cefe.cnrs.fr>, Roger Pradel, Rémi Choquet