| POET | R Documentation |
Projection-on-Orthogonal-Complement Estimation and Transformation
POET(X, r.max = 10, delta = 0.01, eps = 1e-08)
X |
A numeric n by p data matrix, with observations in rows and variables in columns. |
r.max |
A positive integer specifying the maximum number of factors considered for selection. The effective upper bound is limited by the sample size and number of variables. |
delta |
A non-negative numeric value added to the diagonal of the residual covariance estimate. Default is 0.01. |
eps |
A positive numeric tolerance used to stabilize eigenvalue-based calculations and residual variances. Default is 1e-8. |
Ahat, Dhat, Sigmahat, Fhat.
Fan, J., Liao, Y. and Mincheva, M. (2013). Large covariance estimation by thresholding principal orthogonal complements. Journal of the Royal Statistical Society: Series B, 75(4), 603–680.
set.seed(123)
n <- 100; p <- 10; r <- 3
F <- matrix(rnorm(n * r), nrow = n, ncol = r)
A <- matrix(runif(p * r, -1, 1), nrow = p, ncol = r)
E <- matrix(rnorm(n * p, sd = 0.5), nrow = n, ncol = p)
X <- F %*% t(A) + E
res <- POET(X = X, r.max = 5, delta = 0.01, eps = 1e-8)
dim(res$Sigmahat)
res$rhat
Sigma.true <- A %*% t(A) + diag(0.25, p)
MSESigma <- mean((res$Sigmahat - Sigma.true)^2)
MSESigma
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.