powered by
Uses the stepwise procedure described in Section 13.1.4 to find a pattern for a set of observed eigenvalues with good BIC value.
pcbic.stepwise(eigenvals, n)
The \(Q\)-vector of eigenvalues of the covariance matrix, in order from largest to smallest.
The degrees of freedom in the covariance matrix.
A list with the following components:
A list of patterns, one for each value of length \(K\).
A vector of the BIC's for the above patterns.
The best (smallest) value among the BIC's in BICs.
The pattern with the best BIC.
A \(Q\)-vector containing the MLE's for the eigenvalues for the pattern with the best BIC.
pcbic, pcbic.unite, and pcbic.subpatterns.
pcbic
pcbic.unite
pcbic.subpatterns
# NOT RUN { # Build cars1 require("mclust") mcars <- Mclust(cars) cars1 <- cars[mcars$classification == 1, ] xcars <- scale(cars1) eg <- eigen(var(xcars)) pcbic.stepwise(eg$values, 95) # }
Run the code above in your browser using DataLab