RV: RV coefficients

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/RV.R

Description

Three different RV coefficients: RV, RV2 and adusted RV.

Usage

1
2
3
4
5
6
7
8
9
RV(X1, X2)

RV2(X1, X2)

RVadjMaye(X1, X2)

RVadjGhaziri(X1, X2)

RVadj(X1, X2, version = c("Maye", "Ghaziri"))

Arguments

X1

first matrix to be compared (data.frames are also accepted).

X2

second matrix to be compared (data.frames are also accepted).

version

Which version of RV adjusted to apply: "Maye" (default) or "Ghaziri" RV adjusted is run using the RVadj function.

Details

For each of the four coefficients a single scalar is computed to describe the similarity between the two input matrices.

Value

A single value measuring the similarity of two matrices.

Author(s)

Kristian Hovde Liland, Benjamin Leutner (RV2)

References

See Also

SMI, r1 (r2/r3/r4/GCD).

Examples

1
2
3
4
5
6
7
X1  <- matrix(rnorm(100*300),100,300)
usv <- svd(X1)
X2  <- usv$u[,-3] %*% diag(usv$d[-3]) %*% t(usv$v[,-3])

RV(X1,X2)
RV2(X1,X2)
RVadj(X1,X2)

MatrixCorrelation documentation built on Sept. 25, 2017, 1:04 a.m.