Description Usage Arguments Details Value Author(s) References See Also Examples
varls
, corls
compute the procrustean
variance / covariance, or correlation matrices
between a set of real matrices and dist
objects.
1 2 3 |
... |
the set of matrices or a |
nrand |
number of randomisation used to estimate the mean
covariance observed between two random matrix.
If rand is |
p_adjust_method |
the multiple test correction method used
to adjust p values. |
Procrustean covariance between two matrices X and Y, is defined as the sum of the singular values of the X'Y matrix \insertCiteGower:71:00,Lingoes:74:00ProcMod. Both the X and Y matrices must have the same number of rows.
The variances and covariances and correlations are corrected to avoid over fitting \insertCiteCoissac-Eric:19:00ProcMod.
The inputs must be numeric matrices or dist
object.
The set of input matrices can be aggregated un a
procmod_frame
.
Before computing the coefficients, matrices are projected into an
orthogonal space using the ortho
function.
The denominator n - 1 is used which gives an unbiased estimator of the (co)variance for i.i.d. observations.
a procmod_varls
object which corresponds to a numeric
matrix annotated by several attributes.
The following attribute is always added:
- nrand
an integer value indicating the number of
randomisations used to estimate the mean of the random
covariance.
When nrand
is greater than 0 a couple of attributes
is added:
- rcovls
a numeric matrix containing the estimation
of the mean of the random covariance.
- p.value
a numeric matrix containing the estimations
of the p.values of tests checking that the observed
covariance is larger than the mean of the random covariance.
p.values are corrected for multiple tests according to the
method specified by the p_adjust_method
parameter.
Eric Coissac
Christelle Gonindard-Melodelima
Gower:71:00ProcMod
\insertRefLingoes:74:00ProcMod
\insertRefCoissac-Eric:19:00ProcMod
1 2 3 4 5 6 7 8 9 10 11 12 13 | # Build Three matrices of 3 rows.
A <- simulate_matrix(10,3)
B <- simulate_matrix(10,5)
C <- simulate_correlation(B,10,r2=0.6)
# Computes the variance covariance matrix
varls(A = A, B = B, C = C)
data = procmod_frame(A = A, B = B, C = C)
varls(data)
# Computes the correlation matrix
corls(data, nrand = 100)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.