pcbic | R Documentation |
Find the BIC and MLE from a set of observed eigenvalues for a specific pattern.
pcbic(eigenvals, n, pattern)
eigenvals |
The |
n |
The degrees of freedom in the covariance matrix. |
pattern |
The pattern of equalities of the eigenvalues, given by the
|
A 'list' with the following components:
A Q
-vector containing the MLE's for the eigenvalues.
The deviance of the model, as in (13.13).
The dimension of the model, as in (13.12).
The value of the BIC for the model, as in (13.14).
pcbic.stepwise
, 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(eg$values, 95, c(1, 1, 3, 3, 2, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.