restrshapeGPCM

restrshapeGPCM produces the restricted shape matrix for the 14 GPCM

Syntax

  • GAMc=restrshapeGPCM(lmd, Omega, SigmaB, niini, pa)example

Description

The purpose of this routine is to produce the constrained shape matrix $\Gamma$.

This routine copes with the second of the 3 letters of modeltype. It deals with the cases in which the second letter is E, or I or V. If the second letter is V procedure restrshapecore is invoked and both (within groups) cshw, and (between groups) cshb constraints are imposed. If the second letter of modeltype is E just cshw is used. If the second letter is I, GAMc becomes a matrix of ones.

example

GAMc =restrshapeGPCM(lmd, Omega, SigmaB, niini, pa)

Examples

Input Arguments

expand all

lmd — Determinants. Vector.

Row vector of length k containing in the j-th position the estimate of lambda. In the first iteration the estiamte of \lambda_j is $|\Sigma_j|^(1/v)$, $j=1, 2, \ldots, k$ if different determinants are allowed else it is a row vector of ones.

Data Types: single| double

Omega — Rotation. 3D array.

v-by-v-by-k 3D array containing in position (:,:,j) the rotation matrix $\Omega_j$ for group $j$, with $j=1, 2, \ldots, k$.

Data Types: single| double

SigmaB — initial unconstrained covariance matrices. v-by-v-by-k array.

v-by-v-by-k array containing the k unconstrained covariance matrices for the k groups.

Data Types: single| double

niini — size of the groups. Vector.

Row vector of length k containing the size of the groups.

Data Types: single| double

pa — constraining parameters. Structure.

Structure containing 3 letter character specifying modeltype, number of dimensions, number of groups...

pa must contain the following fields:

Value Description
v

scalar, number of variables.

k

scalar, number of groups.

pars

type of Gaussian Parsimonious Clustering Model.

A 3 letter word in the set: 'VVE','EVE','VVV','EVV','VEE','EEE','VEV','EEV','VVI', 'EVI','VEI','EEI','VII','EII'

shb

between groups shape constraint

shw

within groups shape constraint

zerotol

tolerance to decleare elements equal to 0.

maxiterS

maximum number of iterations in presence of varying shape matrices.

userepmat

scalar (if =2 implicit expansion is used)

Data Types: struct

Output Arguments

expand all

GAMc —In column j the elements on the main diagonal of shape matrix $\Gamma_j$. constrained shape matrix. Matrix of size v-by-k

The elements of GAMc satisfy the following constraints: The product of the elements of each column is equal to 1.

The ratio among the largest elements of each column is not greater than pa.shb.

The ratio among the second largest elements of each column is not greater than pa.shb.

....

The ratio among the smallest elements of each column is not greater than pa.shb.

The ratio of the elements of each column is not greater than pa.shw.

All the columns of matrix GAMc are equal if the second letter of modeltype is E. All the columns of matrix GAMc are equal to 1 if the second letter of modeltype is I. This matrix will be an input of routine restrdeterGPCM to compute constrained determinants.

References

Garcia-Escudero L.A., Mayo-Iscar, A. and Riani M. (2020). Model-based clustering with determinant-and-shape constraint, Statistics and Computing, vol. 30, pp. 1363–1380, https://link.springer.com/article/10.1007/s11222-020-09950-w

Garcia-Escudero L.A., Mayo-Iscar, A. and Riani M. (2022). Constrained parsimonious model-based clustering, Statistics and Computing, vol. 32, https://doi.org/10.1007/s11222-021-10061-3

This page has been automatically generated by our routine publishFS