Free Statistics

of Irreproducible Research!

Author's title

Author*Unverified author*
R Software Modulerwasp_factor_analysis.wasp
Title produced by softwareFactor Analysis
Date of computationFri, 09 Nov 2012 10:37:42 -0500
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2012/Nov/09/t13524755589nbyu3omy7bc97d.htm/, Retrieved Mon, 29 Apr 2024 16:00:41 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=187163, Retrieved Mon, 29 Apr 2024 16:00:41 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact99
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Factor Analysis] [] [2012-11-09 15:37:42] [d41d8cd98f00b204e9800998ecf8427e] [Current]
Feedback Forum

Post a new message
Dataseries X:
1	2	2	2	4	2	5	4	5	2	2	4	5
2	2	2	2	2	1	4	2	5	2	2	4	2
3	2	2	2	5	2	2	2	2	2	2	5	5
4	1	1	1	4	1	4	4	4	2	2	4	4
5	1	1	1	2	1	2	2	2	2	2	4	4
6	1	1	1	2	2	4	2	2	1	1	2	4
7	3	4	2	NA	2	4	NA	4	4	4	4	NA
8	2	2	2	2	NA	4	4	4	NA	2	4	NA
9	1	2	1	2	1	2	2	4	2	4	4	4
10	4	2	2	2	2	2	2	2	4	NA	2	4
11	1	1	1	4	1	2	2	1	1	1	4	5
12	2	4	4	5	2	4	4	2	4	2	4	4
13	2	1	1	1	1	2	1	1	1	1	2	2
14	4	2	2	2	2	4	2	2	4	4	4	4
15	2	2	4	2	2	4	NA	4	4	4	4	NA
16	2	2	2	2	2	2	2	2	2	4	4	4
17	2	2	1	2	1	1	2	1	1	1	2	1
18	1	1	1	1	1	2	2	2	2	2	2	2
19	1	2	2	2	1	2	2	4	2	2	4	4
20	2	4	1	1	1	2	1	1	1	1	2	2
21	2	2	4	2	2	2	2	2	2	2	4	4
22	2	2	2	4	2	4	NA	2	2	4	4	4
23	2	2	2	2	2	4	2	2	2	2	4	2
24	2	2	1	2	2	4	2	1	1	2	4	4
25	2	2	2	4	4	4	4	2	2	2	4	4
26	2	2	2	4	4	4	4	2	2	2	4	4
27	4	2	2	5	2	5	4	4	4	5	4	4
28	2	2	2	2	2	2	2	2	2	2	2	4
29	2	2	1	2	1	2	2	2	4	2	4	4
30	4	5	2	4	2	4	2	4	4	2	4	4
31	4	4	4	4	2	4	2	4	4	4	4	2
32	4	2	2	2	2	4	4	4	4	4	5	4
33	2	2	2	3	2	4	2	4	3	3	4	5
34	2	NA	2	NA	2	4	4	4	2	4	5	4
35	4	2	4	NA	4	2	5	4	4	4	5	4
36	1	4	2	4	2	4	5	2	2	2	4	4
37	4	2	4	2	2	4	2	5	4	4	5	5
38	1	1	1	1	1	4	1	4	1	1	4	4
39	2	2	4	NA	5	NA	4	5	2	2	4	4
40	2	4	2	2	NA	2	2	4	4	4	4	4
41	2	4	4	2	4	4	4	2	4	4	4	4
42	4	4	2	2	2	2	2	2	2	2	2	2
43	2	2	4	2	2	4	2	4	2	2	4	2
44	4	4	2	4	1	5	4	5	2	4	5	5




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Sir Maurice George Kendall' @ kendall.wessa.net
R Engine error message
Error in array(list(1, 2, 2, 2, 4, 2, 5, 4, 5, 2, 2, 4, 5, 2, 2, 2, 2,  : 
  length of 'dimnames' [1] not equal to array extent
Execution halted

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 1 seconds \tabularnewline
R Server & 'Sir Maurice George Kendall' @ kendall.wessa.net \tabularnewline
R Engine error message & 
Error in array(list(1, 2, 2, 2, 4, 2, 5, 4, 5, 2, 2, 4, 5, 2, 2, 2, 2,  : 
  length of 'dimnames' [1] not equal to array extent
Execution halted
\tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=187163&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]1 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'Sir Maurice George Kendall' @ kendall.wessa.net[/C][/ROW]
[ROW][C]R Engine error message[/C][C]
Error in array(list(1, 2, 2, 2, 4, 2, 5, 4, 5, 2, 2, 4, 5, 2, 2, 2, 2,  : 
  length of 'dimnames' [1] not equal to array extent
Execution halted
[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=187163&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=187163&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Sir Maurice George Kendall' @ kendall.wessa.net
R Engine error message
Error in array(list(1, 2, 2, 2, 4, 2, 5, 4, 5, 2, 2, 4, 5, 2, 2, 2, 2,  : 
  length of 'dimnames' [1] not equal to array extent
Execution halted



Parameters (Session):
par1 = 2 ;
Parameters (R input):
par1 = 2 ;
R code (references can be found in the software module):
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='test1.png')
fa.diagram(fit)
dev.off()
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')