d_getModel.mixer: Get the model parameters

Description Usage Arguments Value Author(s) Examples

Description

Given a number of classes, get the model parameters (alphas, Pis, Taus ).

Usage

1
2
## S3 method for class 'mixer'
getModel( object, ...)

Arguments

object

a mixer object (output of the mixer function).

...

adding arguments (depending on the object type)

q

selects a q-class model. If NULL, q value is chosen to maximise the criterion (ICL criterion or ILvb criterion) (see plot.mixer and mixer). Default NULL.

Value

Return a list with the following attributes:

q

q-class model selected.

criterion

criterion value (ICL criterion or ILvb criterion).

alphas

vector of class proportion.

Pis

connectivity matrix of classes.

Taus

matrix of posterior probabilities (of the hidden colour knowing the graph structure).

Author(s)

G. Grasseau

Examples

1
2
3
4
5
graph.affiliation(n=100,c(1/3,1/3,1/3),0.8,0.2) -> g
mixer(g$x,qmin=2,qmax=6) -> xout
m <- getModel( xout )

m <- getModel( xout, q=5 )

mixer documentation built on Feb. 21, 2018, 1:02 a.m.