acX_to_rho {ciuupi} | R Documentation |
Computes the known correlation
between
and
from the
-vectors
and
and the
design matrix
Description
Computes the known correlation
between
and
. This correlation is computed from the
-vectors
and
and the
design matrix
, with linearly independent columns, using the formula
, where
and
.
Usage
acX_to_rho(a, c, X)
Arguments
a |
The |
c |
The |
X |
The |
Value
The known correlation between
and
.
Examples
a <- c(0, 2, 0, -2)
c <- c(0, 0, 0, 1)
x1 <- c(-1, 1, -1, 1)
x2 <- c(-1, -1, 1, 1)
X <- cbind(rep(1, 4), x1, x2, x1*x2)
rho <- acX_to_rho(a, c, X)
print(rho)
[Package ciuupi version 1.2.3 Index]