ldet.eval {EnviroStat} | R Documentation |
Function to calculate the log determinant off all sub-covariance matrices of size (k x k) from a covariance matrix.
ldet.eval(covmat, k, all = FALSE)
covmat |
a covariance matrix (ie. non-negative definite, square and symmetric) |
k |
dimension of sub-covariance matrices considered |
all |
if |
coord.sel |
The k coordinates having the largest log|det| |
log.det |
The log|det| of the submatrix corresponding the |
all.comb |
all combinations and their log|det| if |
; NULL otherwise.
Setting all = TRUE
may need additionally a large amount of memory and
so may not work for a large number of combinations!!