linshrink
.
tau_estimate(X, k = 0, method = "nlminb", control = list())
ncol(X)
. If k
== 0
(default), X
is assumed to contain 1 class, which will be
centered. If k >= 1
, X
is assumed to contain k
classes, each of which has already been centered.nlminb
(default) and nloptr
.ncol(X)
, containing the population
eigenvalue estimates, sorted in ascending order.
nlminb
is usually robust and accurate, but does not
allow equality constraints, so, in general, the sum of the estimated
population eigenvalues is not equal to the sum of the sample eigenvalues.
nloptr
enforces an equality constraint to preserve the trace, but is
substantially slower than nlminb
. The default optimizer used for
nloptr
is the Augmented Lagrangian method with local optimization
using LBFGS. These can be modified using the control parameter.tau_estimate(X = matrix(rnorm(1e3, mean = 5), nrow = 50, ncol = 20))
Run the code above in your browser using DataLab