View source: R/principalcomponentsanalysis.R
BartlettTestOfSphericity | R Documentation |
BartlettTestOfSphericity
Conduct the Bartlett Test of Sphericity for a set of data, which tests that the correlation matrix of the data is not the identity matrix.
BartlettTestOfSphericity(
data,
weights = NULL,
subset = NULL,
missing = "Exclude cases with missing data"
)
data |
A data frame containing the data to test. |
weights |
A numeric vector containing the weight for each case in data. |
subset |
A logical vector which describes the subset of |
missing |
A string specifiying what to do when the |
This function wraps cortest.bartlett
. In
particular, it extends the existing funcitonality to weighted data, and it
computes the test using a more conservative value of the sample size when
there is missing data. The value for the sample size that is used is the
size of the smallest pairwise-complete set of cases among all pairs of
variables. This is consistent with SPSS.
A list containing the Chi-Square value, degrees of freedom
(df
), and p-value for the test.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.