GGMblockNullPenalty {rags2ridges} | R Documentation |
Generate the distribution of the penalty parameter under the null hypothesis of block-independence
Description
Function that serves as a precursor function to the block-independence test
(see GGMblockTest
). It generates an empirical distribution of
the penalty parameter under the null hypothesis of block independence (in
the regularized precision matrix).
Usage
GGMblockNullPenalty(
Y,
id,
nPerm = 25,
lambdaMin,
lambdaMax,
lambdaInit = (lambdaMin + lambdaMax)/2,
target = default.target(covML(Y)),
type = "Alt",
ncpus = 1
)
Arguments
Y |
Data |
id |
A |
nPerm |
A |
lambdaMin |
A |
lambdaMax |
A |
lambdaInit |
A |
target |
A target |
type |
A |
ncpus |
A |
Details
This function can be viewed as a precursor to the function for the
block-independence test (see GGMblockTest
). The mentioned test
evaluates the null hypothesis of block-independence against the alternative
of block-dependence (presence of non-zero elements in the off-diagonal
block) in the precision matrix using high-dimensional data. To accommodate
the high-dimensionality the parameters of interest are estimated in a
penalized manner (ridge-type penalization, see ridgeP
).
Penalization involves a degree of freedom (the penalty parameter) which
needs to be fixed before testing. This function then generates an empirical
distribution of this penalty parameter. Hereto the samples are permutated
within block. The resulting permuted data sets represent the null
hypothesis. To avoid the dependence on a single permutation, many permuted
data sets are generated. For each permutation the optimal penalty parameter
is determined by means of cross-validation (see
optPenalty.LOOCVauto
). The resulting optimal penalty
parameters are returned. An estimate of the location (such as the median) is
recommended for use in the block-independence test.
Value
A numeric
vector, representing the distribution of the (LOOCV
optimal) penalty parameter under the null hypothesis of block-independence.
Author(s)
Wessel N. van Wieringen, Carel F.W. Peeters <carel.peeters@wur.nl>
See Also
ridgeP
, optPenalty.LOOCVauto
,
default.target
, GGMblockTest
Examples
## Obtain some (high-dimensional) data
p = 15
n = 10
set.seed(333)
X = matrix(rnorm(n*p), nrow = n, ncol = p)
colnames(X)[1:15] = letters[1:15]
id <- c(rep(0, 10), rep(1, 5))
## Generate null distribution of the penalty parameter
lambda0dist <- GGMblockNullPenalty(X, id, 5, 0.001, 10)
## Location of null distribution
lambdaNull <- median(lambda0dist)