corLevLowRank {kergp} | R Documentation |
Correlation Matrix for a Low-Rank Structure
Description
Compute the correlation matrix for a low-rank structure.
Usage
corLevLowRank(par, nlevels, rank, levels,
lowerSQRT = FALSE, compGrad = TRUE,
cov = 0, impl = c("C", "R"))
Arguments
par |
A numeric vector with length |
nlevels |
Number of levels |
rank |
The rank, which must be |
levels |
Character representing the levels. |
lowerSQRT |
Logical. When |
compGrad |
Logical. Should the gradient be computed? This is only possible for the C implementation. |
cov |
Integer |
impl |
A character telling which of the C and R implementations should be chosen. The R implementation is only for checks and should not be used. |
Details
The correlation matrix with size is the general symmetric
correlation matrix with rank
where
is
given, as described by Rapisarda et al. It depends on
parameters
where the indices
and
are such that
for
or such that
for
. The parameters
are angles
and are to be taken to be in
if
and in
otherwise.
Value
A correlation matrix (or its root) with the optional gradient
attribute.
Note
This function is essentially for internal use and the corresponding
correlation or covariance kernels are created as covQual
objects by using the q1LowRank
creator.
Here the parameters are used in
row order rather than in the column order. This order simplifies the
computation of the gradient.
References
Francesco Rapisarda, Damanio Brigo, Fabio Mercurio (2007). "Parameterizing Correlations a Geometric Interpretation". IMA Journal of Management Mathematics, 18(1): 55-73.
Igor Grubišić, Raoul Pietersz (2007). "Efficient Rank Reduction of Correlation Matrices". Linear Algebra and its Applications, 422: 629-653.
See Also
The q1LowRank
creator of a corresponding kernel object
with class "covQual"
, and the similar corLevSymm
function for the full-rank case.