Description Usage Arguments Details Value Author(s) References See Also Examples
For every row in the matrix X
the posterior probability of belonging to class i
is calculated.
1 2 |
object |
an object of the class |
X |
a |
knowns |
a |
P |
a matrix with plausibilities for object |
B |
a matrix with beliefs for object |
... |
all other arguments will be neglected. |
The matrix tij of posterior probabilities is calculated as normalized products of priors pi's and density of model components in values specified by rows of the matrix X
.
If arguments knowns
and B
are specified then the priors's for objects in knowns
are replaced by belief matrix B
.
If arguments knowns
and P
are specified then the priors's for objects in knowns
are multiplied by plausibility matrix P
.
An list with the following elements:
tij.X, tij.knowns |
the matrix tij.X is a matrix with number of rows equal to number of rows in the matrix |
class.X, class.knowns |
vactors of labels/classes obtained with the MAP rule. The vector |
Przemyslaw Biecek, Ewa Szczurek, Martin Vingron, Jerzy Tiuryn (2012), The R Package bgmm: Mixture Modeling with Uncertain Knowledge, Journal of Statistical Software.
http://bgmm.molgen.mpg.de
1 2 3 4 5 6 |
Loading required package: mvtnorm
Loading required package: car
Loading required package: carData
Loading required package: lattice
Loading required package: combinat
Attaching package: 'combinat'
The following object is masked from 'package:utils':
combn
List of 4
$ tij.X : num [1:318, 1:3] 1 1 1 1 1 1 1 1 1 1 ...
..- attr(*, "dimnames")=List of 2
.. ..$ : chr [1:318] "1" "2" "3" "4" ...
.. ..$ : NULL
$ tij.knowns : NULL
$ class.X : Named int [1:318] 1 1 1 1 1 1 1 1 1 1 ...
..- attr(*, "names")= chr [1:318] "1" "2" "3" "4" ...
$ class.knowns: NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.