View source: R/pcbic.stepwise.R
| pcbic.stepwise | R Documentation | 
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)
| eigenvals | The  | 
| n | 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.
# Build cars1
require("mclust")
mcars <- Mclust(cars)
cars1 <- cars[mcars$classification == 1, ]
xcars <- scale(cars1)
eg <- eigen(var(xcars))
pcbic.stepwise(eg$values, 95)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.