Rsoc/soc.ca — Issue #25: Class specific analysis
Author: antongrau
Created: 2011-12-21 10:57:11+00:00
State: open

Write a function that based on LeRoux's example creates a class specific analysis.

Its output is to be fairly similar to soc.ca output.
Though the structure might be a list of list:
result$coord$individuals
result$coord$individuals.standard
result$coord$modalities
result$coord$modalities.standard

This could also be expanded to sup and subset, making the need for numbers for modalities obsolete, as each matrix is properly ordered .... though this complicates plotting somewhat

Output needs to include:

* Singular values
* Number of dimensions
* Eigenvalues
* Total inertia
* Names of modalities
* Names of individuals
* Mass # Is this only for modalities?
* Chidistances (for all types)
* Inertia
* Explained inertia # which is a matrix with the unadjusted inertias, used for output, printing and plotting.
* Adjusted inertia # which is a matrix with the adjusted inertias, used for output, printing and plotting.
* Contrib (for individuals and modalities)
* Correlation (for all types) # This is quality...
* Average.contrib # A list of all modalities that contribute above average for each dimension. # This could be outfased and replaced with a function that only calculates this for the needed dimensions.

* Individ.coord in both standard and principal coord
* Modal.coord in both standard and principal coord
* Sup.coord in both standard and principal
* Modal contribution
* Individual contribution # This is something new

The original includes a Burt matrix and a matrix that identifies row and column position of variables - this is still needed. The Burt matrix is small and is useful in certain functions.

Is the indicator-matrix to be included?