Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
SCF30 #3 263.9259259 138.2 58.72222222 13.52755574 SCF30 #2 434.5925926 281.1 152.3703704 37.12172206 SCF #2 316.6296296 200.51 86.81481481 26.13097742 SCF30 404.7703704 237.8 124.6296296 36.75220867 SFSCF #1 324.7185185 119.98 122.5185185 25.35128313 SFSCFP #1 248.2 88.58888889 47.44444444 18.15173187 SCF 329.0233333 101.9 119.0851852 26.13097742 SCF-P 261.7333333 95.93 95.95802469 22.24162109
Names of X columns:
label TPC TFC DPPH FRAP
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] 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