Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
Warmth & Involvment 2.73 2.00 4.45 2.27 1.91 'Reasoning/Induction' 2.71 1.00 4.86 1.71 1.14 'Democratic Participation' 1.80 1.20 4.80 1.60 1.60 'Good Natured/Easy Going' 2.50 1.75 4.25 2.75 2.00 'Total' 2.44 1.49 4.59 2.08 1.66 'Verbal Hostility' 3.50 3.50 1.50 3.00 2.25 'Corporal Punishment' 3.00 3.25 1.50 2.50 1.50 'Non-Reasoning/Punitive Strategies' 3.83 4.17 1.00 3.50 4.17 'Directiveness' 5.00 3.00 1.75 4.25 4.00 'Total' 3.83 3.48 1.44 3.31 2.98 'Permissive Practices' Mom Dad RGF ECM RG 'Lack of Follow Through' 1.00 2.00 1.00 3.00 2.00 'Ignoring Misbehavior' 1.25 1.25 2.00 1.50 1.00 'Lack of Self-Confidence' 1.00 3.20 1.00 1.00 4.60 'Total' 1.08 2.15 1.33 1.83 2.53
Names of X columns:
label Mom Dad Me ECM RG
Number of Factors
Chart options
R Code
par1 <- '' 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