I can no longer find the RMSEA of a factor or PCA analysis in R. See this code:
library(psych)
data("Thurstone")
Thurstone
mod1<-pca(Thurstone, nfactors=2)
mod1$RMSEA
factor.stats(Thurstone, mod1)
Where is this information stored? I used to be able to run mod1$RMSEA and get it quite cleanly.
After reading the help page for
factor.statsI suggestSo what you may have done before was something like
There’s another function,principalin pkg::psych that sometimes gets different results but I don’t know if the difference includes the RMSEA values.Once I was able to do some hacking on something other than my iPhone I found that including the n.obs argument seems to solve the problem:
Added note: You can see that the help page for
?pcadoesn't actually document thepcafunction; rather it describes theprincipalfunction. And if you look at the code forpcais shows that the "n.obs" needed byfactor.statsis set to NA.So if
principalhad been called everything would have come as expected: