| initParamList {multimix} | R Documentation |
Initialise the parameter list.
Description
Although the starting parameter list P may be specified directly,
Note also that any matrices specified must be positive definite.
This function calculates an initial P from D and a starting
value for Z.
Usage
initParamList(D, Z)
Arguments
D |
an object of class |
Z |
an |
Value
an object of class multimixParamList which is a list
with the following elements:
dstat–listof matrices for each discrete variable not included in a location model. The matrix for each discrete variable is made up of a column of lengthqfor each level (value) of the variable giving the expected proportion of each level (column) for each mixture component (row). Rows sum to 1.ldstat–listof matrices for each discrete variable within a location model. The matrix for each discrete variable is made up of a column of lengthqfor each level (value) of the variable giving the expected proportion of each level (column) for each mixture component (row). Rows sum to 1.ostat–matrixwith a column for each continuous variable outside any location mode whoseqrows give the current estimated mean for each mixture component.ostat2–matrixwith a column for each continuous variable outside any location mode whoseqrows give the current estimated mean square for each mixture component.osvar–matrixwith a column for each continuous variable outside any location mode whoseqrows give the current estimated variance for each mixture component.cstat–listwith a member for each nontrivial, fully continuous, partition cell, that is not including discrete cells or cells listed in lcdep, each member being amatrixwith a column for each continuous variable in that cell, whoseqrows give the current estimated mean for each mixture component.cstat2–listwith a member for each nontrivial, fully continuous, partition cell, each member being amatrixwith a column for each continuous variable in that cell, whoseqrows give the current estimated mean square for each mixture component.cvar–listwith a member for each nontrivial, fully continuous, partition cell, each member being amatrixwith a column for each continuous variable in that cell, whoseqrows give the current estimated variance for each mixture component.cpstat–listwith a member for each nontrivial, fully continuous, partition cell, each member being thematrixwith rows for each of theqmixture components and columns for each pair of continuous variables in that cell, as ordered bypair.index. The matrix elements are the currently expected products of the variable pairs arranged by component and pair.ccov–listwith a member for each nontrivial, fully continuous, partition cell, each member being thematrixwith rows for each of theqmixture components and columns for each pair of continuous variables in that cell, as ordered by pair.index. The matrix elements are the currently expected covariances of the variable pairs arranged by component and pair.MVMV–listwith a member for each nontrivial, fully continuous, partition cell, each member being a list with members for each of theqmixture components whose values are the covariance matrix estimates for that cell and component.lcstat–listwith a member for location partition cell, each member being amatrixwith a column for each continuous variable in that cell, whoseqrows give the current estimated mean for each mixture component.lcstat2–listwith a member for location partition cell, each member being amatrixwith a column for each continuous variable in that cell, whoseqrows give the current estimated mean square for each mixture component.lcpstat–listwith a member for each location cell, each member being thematrixwith rows for each of theqmixture components and columns for each pair of continuous variables in that cell, as ordered bypair.index. The matrix elements are the currently expected products of the variable pairs arranged by component and pair.lccov–listwith a member for each location cell, each member being the matrix with rows for each of theqmixture components and columns for each pair of continuous variables in that cell, as ordered bypair.index. The matrix elements are the currently estimated covariances of the variable pairs arranged by component and pair.ldxcstat–listwith a member for each location partition cell, each member being a list with a member for each level of the cell's discrete variable that member being a matrix of mean values of the continuous variables for each level-class combination.pistat–vectorcontaining estimates of population proportion in each cluster; column means ofZmatrix.W–matrixof weights of observationiin clusterj; the columns of theZmatrix are each multiplied by constant to giveWcolumns summing to 1.