Learn R Programming

mixer (version 1.2)

getModel.mixer: Get the model parameters

Description

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

Usage

## S3 method for class 'mixer':
getModel( object, \ldots)

Arguments

object
a mixer object (output of the mixer function).
...
adding arguments (depending on the object type) [object Object]

Value

  • Return a list with the following attributes:
  • qq-class model selected.
  • criterioncriterion value (ICL criterion or ILvb criterion).
  • alphasvector of class proportion.
  • Pisconnectivity matrix of classes.
  • Tausmatrix of posterior probabilities (of the hidden colour knowing the graph structure).

Examples

Run this code
graph.affiliation(n=100,c(1/3,1/3,1/3),0.8,0.2)->g
mixer(g$x,qmin=2,qmax=6)->xout
getModel( xout )

Run the code above in your browser using DataLab