tune_u_joint {TensorClustering} | R Documentation |
Tuning envelope dimension jointly by BIC in TEMM.
Description
Tuning envelope dimension jointly by BIC in TEMM.
Usage
tune_u_joint(u_candi, K, X, iter.max = 500, stop = 0.001, trueY = NULL)
Arguments
u_candi |
A list of length |
K |
Number of clusters, greater than or equal to |
X |
The tensor for clustering, should be array type, the last dimension is the sample size |
iter.max |
Maximum number of iterations. Default value is |
stop |
Convergence threshold of relative change in cluster means. Default value is |
trueY |
A vector of true cluster labels of each observation. Default value is NULL. |
Details
The tune_u_joint
function searches over all the combinations of in the neighborhood of
,
, that minimizes
In the above BIC, is the total number of parameters in TEMM,
and
are the estimated parameters with envelope dimension fixed at
. The
tune_u_joint
function intrinsically selects the initial point and return the optimal estimated labels.
Value
opt.u |
Optimal envelope dimension selected. |
opt.id |
Estimated labels fitted by TEMM with the optimal envelope dimension. |
opt.Mu |
Estimated cluster means fitted by TEMM with the optimal envelope dimension. |
bic |
BIC value. |
Author(s)
Kai Deng, Yuqing Pan, Xin Zhang and Qing Mai
References
Deng, K. and Zhang, X. (2021). Tensor Envelope Mixture Model for Simultaneous Clustering and Multiway Dimension Reduction. Biometrics.
See Also
Examples
A = array(c(rep(1,20),rep(2,20))+rnorm(40),dim=c(2,2,10))
mytune = tune_u_joint(u_candi=list(1:2,1:2),K=2,A)