corral_preproc {corral} | R Documentation |
This function performs the row and column scaling pre-processing operations, prior to SVD, for the corral methods. See corral
for single matrix correspondence analysis and corralm
for multi-matrix correspondence analysis.
corral_preproc( inp, rtype = c("standardized", "indexed", "hellinger"), row.w = NULL, col.w = NULL )
inp |
matrix, numeric, counts or logcounts; can be sparse Matrix or matrix |
rtype |
character indicating what type of residual should be computed; options are "indexed", "standardized", and "hellinger"; defaults to "standardized." |
row.w |
numeric vector; Default is |
col.w |
numeric vector; Default is |
sparse matrix, processed for input to compsvd
to finish CA routine
mat <- matrix(sample(0:10, 500, replace=TRUE), ncol=25) mat_corral <- corral_preproc(mat) corral_output <- compsvd(mat_corral, ncomp = 5)