Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
I feel Stylish when I wear it .74 .46 .6 I feel safe when I wear it .8 .54 .8003 I can feel better when I wear it .78 .2 .58 I sleep better when I wear it .38 .6 0.72 I like the variety of colors 0.81 .72 .62 I can swim freely .7 .56 .65 I feel comfortable when I am alone .78 .6 .86 I am not afraid of sleeping alone 0.9 .8 .78 Comfortable to wear .4 .36 .62 I don’t worry about post exceeding .24 .16 .2
Names of X columns:
X1 X2 X3 X4
Number of Factors
Chart options
R Code
library(psych) par1 <- as.numeric(par1) x <- t(x) nrows <- length(x[,1]) ncols <- length(x[1,]) y <- array(as.double(x[1:nrows,2:ncols]),dim=c(nrows,ncols-1)) colnames(y) <- colnames(x)[2:ncols] rownames(y) <- x[,1] print(y) fit <- principal(y, nfactors=par1, rotate='varimax') fit fs <- factor.scores(y,fit) fs bitmap(file='test2.png') plot(fs$scores,pch=20) text(fs$scores,labels=rownames(y),pos=3) dev.off() load(file='createtable') a<-table.start() a<-table.row.start(a) a<-table.element(a,'Rotated Factor Loadings',par1+1,TRUE) a<-table.row.end(a) a<-table.row.start(a) a<-table.element(a,'Variables',1,TRUE) for (i in 1:par1) { a<-table.element(a,paste('Factor',i,sep=''),1,TRUE) } a<-table.row.end(a) for (j in 1:length(fit$loadings[,1])) { a<-table.row.start(a) a<-table.element(a,rownames(fit$loadings)[j],header=TRUE) for (i in 1:par1) { a<-table.element(a,round(fit$loadings[j,i],3)) } a<-table.row.end(a) } a<-table.end(a) table.save(a,file='mytable.tab')
Compute
Summary of computational transaction
Raw Input
view raw input (R code)
Raw Output
view raw output of R engine
Computing time
0 seconds
R Server
Big Analytics Cloud Computing Center
Click here to blog (archive) this computation