Last chance! 50% off unlimited learning
Sale ends in
This function generates the matrices
MenvU_sim(
p,
u,
Omega = NULL,
Omega0 = NULL,
Phi = NULL,
jitter = FALSE,
wishart = FALSE,
n = NULL
)
Dimension of
The envelope dimension. An integer between 0 and
The positive definite matrix
The positive definite matrix
The positive definite matrix
Logical or numeric. If it is numeric, the diagonal matrix diag(jitter, nrow(M), ncol(M))
is added to matrix TRUE
, then it is set as 1e-5
and the jitter is added. If it is FALSE
(default), no jitter is added.
Logical. If it is TRUE
, the sample estimator from Wishart distribution M
and U
.
The sample size. If wishart
is FALSE
, then n
is ignored.
The M
.
The U
.
The
The matrices
The envelope basis
In some cases, to guarantee that jitter
should be added to
If wishart
is TRUE
, after the matrices n
is required.
Cook, R.D. and Zhang, X., 2018. Fast envelope algorithms. Statistica Sinica, 28(3), pp.1179-1197.
# NOT RUN {
data1 <- MenvU_sim(p = 20, u = 5)
M1 <- data1$M
U1 <- data1$U
# Sample version from Wishart distribution
data2 <- MenvU_sim(p = 20, u = 5, wishart = TRUE, n = 200)
M2 <- data2$M
U2 <- data2$U
# }
Run the code above in your browser using DataLab