test.simple <- fa(item.sim(16),2,rotate="oblimin")
#if(require(Rgraphviz)) {fa.graph(test.simple) }
fa.diagram(test.simple)
f3 <- fa(Thurstone,3,rotate="cluster")
fa.diagram(f3,cut=.4,digits=2)
f3l <- f3$loadings
fa.diagram(f3l,main="input from a matrix")
Phi <- f3$Phi
fa.diagram(f3l,Phi=Phi,main="Input from a matrix")
fa.diagram(ICLUST(Thurstone,2,title="Two cluster solution of Thurstone"),main="Input from ICLUST")
het.diagram(Thurstone,levels=list(1:4,5:8,3:7))
#add item content to the diagram
f5 <- fa(bfi[1:25],5)
fa.diagram(f5) #just show the variable names
#add item content to the diagram using a dictionary
fa.diagram(f5,dictionary=bfi.dictionary, rsize=.5,
main="Factor analysis of the BFI: Item content") #set the rectangle size to be slightly bigger
#this example shows how to use the ic parameter
#show how caffiene increases arousal and tension
select <- c("active" , "alert" , "aroused", "sleepy", "tired" ,
"drowsy" , "anxious", "jittery" ,"nervous",
"calm" , "relaxed" ,"at.ease" ,"gender", "drug")
#msq.small <- msqR[select] requires psychTools
msq.small<- small.msq #a small data set in psych
fe <- fa.extend(msq.small, 2,1:12,14) #caffeine effects on mood
extension.diagram(fe, ic=TRUE) #drug causes arousal
Run the code above in your browser using DataLab