Description Usage Arguments Value Note Author(s)
View source: R/cit.centroidsFunc.R
define centroids for a given partition of individuals (columns) and calculate distance between individuals and centroids
| 1 2 3 4 5 6 7 8 9 | cit.centroids(  d,
classes,
rowCentering=c(NA,function(x)mean(x, na.rm=TRUE),function(x)median(x, na.rm=TRUE))[[3]],
rowClassesForAggregation=NULL,
rowClassesToKeep=NULL,
dist.meth=c("spearman","euclidian","maximum","manhattan",
"canberra","binary","minkowski","pearson","dlda","dqda"),
maxDist=0.5,
...)
 | 
| d | a  | 
| classes | a vector defining a partition of  | 
| rowCentering | 
 | 
| rowClassesForAggregation | partition of the rows , used to aggregate rows from the same class (1 aggregated row per class will be calculated) | 
| rowClassesToKeep | to restrict the centroid's calculation to the some aggregated rows (= row classes) | 
| dist.meth | distance method used to calculate distance between individuals (columns in  | 
| maxDist | individuals for which nearest centroid is above this threshold are discarted (used only if  | 
| ... | parameters from cit.distToCentroids function | 
a list with two objects : centroids and dist2Centroids
This is a contribution from the Tumor Identity Cards (CIT) program founded by the 'Ligue Nationale Contre le Cancer' (France): http://cit.ligue-cancer.net. For any question please contact CITR@ligue-cancer.net
Aurelien de Reynies
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.