Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
PFPeA' 4 19.21984625 0.002379278 264.05 -0.37 PFHxA' 5 22.31695233 0.000875753 264.05 -1.16 PFHpA' 6 59.05849006 0.004849271 364.06 -1.94 PFOA' 7 98.95231681 0.329369675 414.07 -2.73 PFNA' 8 99.899946 5.162508416 464.08 -3.55 PFDA' 9 99.83072038 3.08183062 514.08 -4.31 PFUnDA' 10 99.49481315 0.533216801 564.09 -5.13 PFDoDA' 11 98.20315215 0.12745907 614.1 -5.94
Names of X columns:
label logWb logWbr SWS logPS logL logtg P S D
Number of Factors
Chart options
R Code
par1 <- '2' 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