Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_surveyscores.wasp
Title produced by softwareSurvey Scores
Date of computationSat, 15 Oct 2011 02:46:49 -0400
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2011/Oct/15/t13186612449qpr0u1lpnhohce.htm/, Retrieved Wed, 15 May 2024 22:16:48 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=129684, Retrieved Wed, 15 May 2024 22:16:48 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact128
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Survey Scores] [Intrinsic Motivat...] [2010-10-12 11:18:40] [b98453cac15ba1066b407e146608df68]
- R PD    [Survey Scores] [Extrinsieke motiv...] [2011-10-15 06:46:49] [87b6e955a128bfb8d1e350b3ce0d281e] [Current]
Feedback Forum

Post a new message
Dataseries X:
23	17	23	4
24	17	20	4
22	18	20	6
20	21	21	8
24	20	24	8
27	28	22	4
28	19	23	4
27	22	20	8
24	16	25	5
23	18	23	4
24	25	27	4
27	17	27	4
27	14	22	4
28	11	24	4
27	27	25	4
23	20	22	8
24	22	28	4
28	22	28	4
27	21	27	4
25	23	25	8
19	17	16	4
24	24	28	7
20	14	21	4
28	17	24	4
26	23	27	5
23	24	14	4
23	24	14	4
20	8	27	4
11	22	20	4
24	23	21	4
25	25	22	4
23	21	21	4
18	24	12	15
20	15	20	10
20	22	24	4
24	21	19	8
23	25	28	4
25	16	23	4
28	28	27	4
26	23	22	4
26	21	27	7
23	21	26	4
22	26	22	6
24	22	21	5
21	21	19	4
20	18	24	16
22	12	19	5
20	25	26	12
25	17	22	6
20	24	28	9
22	15	21	9
23	13	23	4
25	26	28	5
23	16	10	4
23	24	24	4
22	21	21	5
24	20	21	4
25	14	24	4
21	25	24	4
12	25	25	5
17	20	25	4
20	22	23	6
23	20	21	4
23	26	16	4
20	18	17	18
28	22	25	4
24	24	24	6
24	17	23	4
24	24	25	4
24	20	23	5
28	19	28	4
25	20	26	4
21	15	22	5
25	23	19	10
25	26	26	5
18	22	18	8
17	20	18	8
26	24	25	5
28	26	27	4
21	21	12	4
27	25	15	4
22	13	21	5
21	20	23	4
25	22	22	4
22	23	21	8
23	28	24	4
26	22	27	5
19	20	22	14
25	6	28	8
21	21	26	8
13	20	10	4
24	18	19	4
25	23	22	6
26	20	21	4
25	24	24	7
25	22	25	7
22	21	21	4
21	18	20	6
23	21	21	4
25	23	24	7
24	23	23	4
21	15	18	4
21	21	24	8
25	24	24	4
22	23	19	4
20	21	20	10
20	21	18	8
23	20	20	6
28	11	27	4
23	22	23	4
28	27	26	4
24	25	23	5
18	18	17	4
20	20	21	6
28	24	25	4
21	10	23	5
21	27	27	7
25	21	24	8
19	21	20	5
18	18	27	8
21	15	21	10
22	24	24	8
24	22	21	5
15	14	15	12
28	28	25	4
26	18	25	5
23	26	22	4
26	17	24	6
20	19	21	4
22	22	22	4
20	18	23	7
23	24	22	7
22	15	20	10
24	18	23	4
23	26	25	5
22	11	23	8
26	26	22	11
23	21	25	7
27	23	26	4
23	23	22	8
21	15	24	6
26	22	24	7
23	26	25	5
21	16	20	4
27	20	26	8
19	18	21	4
23	22	26	8
25	16	21	6
23	19	22	4
22	20	16	9
22	19	26	5
25	23	28	6
25	24	18	4
28	25	25	4
28	21	23	4
20	21	21	5
25	23	20	6
19	27	25	16
25	23	22	6
22	18	21	6
18	16	16	4




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Herman Ole Andreas Wold' @ wold.wessa.net

\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 & 'Herman Ole Andreas Wold' @ wold.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=129684&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]'Herman Ole Andreas Wold' @ wold.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=129684&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=129684&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'Herman Ole Andreas Wold' @ wold.wessa.net







Summary of survey scores (median of Likert score was subtracted)
QuestionmeanSum ofpositives (Ps)Sum ofnegatives (Ns)(Ps-Ns)/(Ps+Ns)Count ofpositives (Pc)Count ofnegatives (Nc)(Pc-Nc)/(Pc+Nc)
119.0630680116101
216.5926710116101
318.4229660116101
41.81291018401

\begin{tabular}{lllllllll}
\hline
Summary of survey scores (median of Likert score was subtracted) \tabularnewline
Question & mean & Sum ofpositives (Ps) & Sum ofnegatives (Ns) & (Ps-Ns)/(Ps+Ns) & Count ofpositives (Pc) & Count ofnegatives (Nc) & (Pc-Nc)/(Pc+Nc) \tabularnewline
1 & 19.06 & 3068 & 0 & 1 & 161 & 0 & 1 \tabularnewline
2 & 16.59 & 2671 & 0 & 1 & 161 & 0 & 1 \tabularnewline
3 & 18.42 & 2966 & 0 & 1 & 161 & 0 & 1 \tabularnewline
4 & 1.81 & 291 & 0 & 1 & 84 & 0 & 1 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=129684&T=1

[TABLE]
[ROW][C]Summary of survey scores (median of Likert score was subtracted)[/C][/ROW]
[ROW][C]Question[/C][C]mean[/C][C]Sum ofpositives (Ps)[/C][C]Sum ofnegatives (Ns)[/C][C](Ps-Ns)/(Ps+Ns)[/C][C]Count ofpositives (Pc)[/C][C]Count ofnegatives (Nc)[/C][C](Pc-Nc)/(Pc+Nc)[/C][/ROW]
[ROW][C]1[/C][C]19.06[/C][C]3068[/C][C]0[/C][C]1[/C][C]161[/C][C]0[/C][C]1[/C][/ROW]
[ROW][C]2[/C][C]16.59[/C][C]2671[/C][C]0[/C][C]1[/C][C]161[/C][C]0[/C][C]1[/C][/ROW]
[ROW][C]3[/C][C]18.42[/C][C]2966[/C][C]0[/C][C]1[/C][C]161[/C][C]0[/C][C]1[/C][/ROW]
[ROW][C]4[/C][C]1.81[/C][C]291[/C][C]0[/C][C]1[/C][C]84[/C][C]0[/C][C]1[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=129684&T=1

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

As an alternative you can also use a QR Code:  

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

Summary of survey scores (median of Likert score was subtracted)
QuestionmeanSum ofpositives (Ps)Sum ofnegatives (Ns)(Ps-Ns)/(Ps+Ns)Count ofpositives (Pc)Count ofnegatives (Nc)(Pc-Nc)/(Pc+Nc)
119.0630680116101
216.5926710116101
318.4229660116101
41.81291018401







Pearson correlations of survey scores (and p-values)
mean(Ps-Ns)/(Ps+Ns)(Pc-Nc)/(Pc+Nc)
mean1 (0)NA (NA)NA (NA)
(Ps-Ns)/(Ps+Ns)NA (NA)NA (NA)NA (NA)
(Pc-Nc)/(Pc+Nc)NA (NA)NA (NA)NA (NA)

\begin{tabular}{lllllllll}
\hline
Pearson correlations of survey scores (and p-values) \tabularnewline
 & mean & (Ps-Ns)/(Ps+Ns) & (Pc-Nc)/(Pc+Nc) \tabularnewline
mean & 1 (0) & NA (NA) & NA (NA) \tabularnewline
(Ps-Ns)/(Ps+Ns) & NA (NA) & NA (NA) & NA (NA) \tabularnewline
(Pc-Nc)/(Pc+Nc) & NA (NA) & NA (NA) & NA (NA) \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=129684&T=2

[TABLE]
[ROW][C]Pearson correlations of survey scores (and p-values)[/C][/ROW]
[ROW][C][/C][C]mean[/C][C](Ps-Ns)/(Ps+Ns)[/C][C](Pc-Nc)/(Pc+Nc)[/C][/ROW]
[ROW][C]mean[/C][C]1 (0)[/C][C]NA (NA)[/C][C]NA (NA)[/C][/ROW]
[ROW][C](Ps-Ns)/(Ps+Ns)[/C][C]NA (NA)[/C][C]NA (NA)[/C][C]NA (NA)[/C][/ROW]
[ROW][C](Pc-Nc)/(Pc+Nc)[/C][C]NA (NA)[/C][C]NA (NA)[/C][C]NA (NA)[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=129684&T=2

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

As an alternative you can also use a QR Code:  

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

Pearson correlations of survey scores (and p-values)
mean(Ps-Ns)/(Ps+Ns)(Pc-Nc)/(Pc+Nc)
mean1 (0)NA (NA)NA (NA)
(Ps-Ns)/(Ps+Ns)NA (NA)NA (NA)NA (NA)
(Pc-Nc)/(Pc+Nc)NA (NA)NA (NA)NA (NA)







Kendall tau rank correlations of survey scores (and p-values)
mean(Ps-Ns)/(Ps+Ns)(Pc-Nc)/(Pc+Nc)
mean1 (0.083)NA (NA)NA (NA)
(Ps-Ns)/(Ps+Ns)NA (NA)NA (NA)NA (NA)
(Pc-Nc)/(Pc+Nc)NA (NA)NA (NA)NA (NA)

\begin{tabular}{lllllllll}
\hline
Kendall tau rank correlations of survey scores (and p-values) \tabularnewline
 & mean & (Ps-Ns)/(Ps+Ns) & (Pc-Nc)/(Pc+Nc) \tabularnewline
mean & 1 (0.083) & NA (NA) & NA (NA) \tabularnewline
(Ps-Ns)/(Ps+Ns) & NA (NA) & NA (NA) & NA (NA) \tabularnewline
(Pc-Nc)/(Pc+Nc) & NA (NA) & NA (NA) & NA (NA) \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=129684&T=3

[TABLE]
[ROW][C]Kendall tau rank correlations of survey scores (and p-values)[/C][/ROW]
[ROW][C][/C][C]mean[/C][C](Ps-Ns)/(Ps+Ns)[/C][C](Pc-Nc)/(Pc+Nc)[/C][/ROW]
[ROW][C]mean[/C][C]1 (0.083)[/C][C]NA (NA)[/C][C]NA (NA)[/C][/ROW]
[ROW][C](Ps-Ns)/(Ps+Ns)[/C][C]NA (NA)[/C][C]NA (NA)[/C][C]NA (NA)[/C][/ROW]
[ROW][C](Pc-Nc)/(Pc+Nc)[/C][C]NA (NA)[/C][C]NA (NA)[/C][C]NA (NA)[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=129684&T=3

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

As an alternative you can also use a QR Code:  

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

Kendall tau rank correlations of survey scores (and p-values)
mean(Ps-Ns)/(Ps+Ns)(Pc-Nc)/(Pc+Nc)
mean1 (0.083)NA (NA)NA (NA)
(Ps-Ns)/(Ps+Ns)NA (NA)NA (NA)NA (NA)
(Pc-Nc)/(Pc+Nc)NA (NA)NA (NA)NA (NA)



Parameters (Session):
par1 = 1 2 3 4 5 6 7 ;
Parameters (R input):
par1 = 1 2 3 4 5 6 7 ;
R code (references can be found in the software module):
docor <- function(x,y,method) {
r <- cor.test(x,y,method=method)
paste(round(r$estimate,3),' (',round(r$p.value,3),')',sep='')
}
x <- t(x)
nx <- length(x[,1])
cx <- length(x[1,])
mymedian <- median(as.numeric(strsplit(par1,' ')[[1]]))
myresult <- array(NA, dim = c(cx,7))
rownames(myresult) <- paste('Q',1:cx,sep='')
colnames(myresult) <- c('mean','Sum of
positives (Ps)','Sum of
negatives (Ns)', '(Ps-Ns)/(Ps+Ns)', 'Count of
positives (Pc)', 'Count of
negatives (Nc)', '(Pc-Nc)/(Pc+Nc)')
for (i in 1:cx) {
spos <- 0
sneg <- 0
cpos <- 0
cneg <- 0
for (j in 1:nx) {
if (!is.na(x[j,i])) {
myx <- as.numeric(x[j,i]) - mymedian
if (myx > 0) {
spos = spos + myx
cpos = cpos + 1
}
if (myx < 0) {
sneg = sneg + abs(myx)
cneg = cneg + 1
}
}
}
myresult[i,1] <- round(mean(as.numeric(x[,i]),na.rm=T)-mymedian,2)
myresult[i,2] <- spos
myresult[i,3] <- sneg
myresult[i,4] <- round((spos - sneg) / (spos + sneg),2)
myresult[i,5] <- cpos
myresult[i,6] <- cneg
myresult[i,7] <- round((cpos - cneg) / (cpos + cneg),2)
}
myresult
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Summary of survey scores (median of Likert score was subtracted)',8,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Question',header=TRUE)
for (i in 1:7) {
a<-table.element(a,colnames(myresult)[i],header=TRUE)
}
a<-table.row.end(a)
for (i in 1:cx) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
for (j in 1:7) {
a<-table.element(a,myresult[i,j],align='right')
}
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Pearson correlations of survey scores (and p-values)',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'',header=TRUE)
a<-table.element(a,'mean',header=TRUE)
a<-table.element(a,'(Ps-Ns)/(Ps+Ns)',header=TRUE)
a<-table.element(a,'(Pc-Nc)/(Pc+Nc)',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'mean',header=TRUE)
a<-table.element(a,docor(myresult[,1],myresult[,1],method='pearson'),align='right')
a<-table.element(a,docor(myresult[,1],myresult[,4],method='pearson'),align='right')
a<-table.element(a,docor(myresult[,1],myresult[,7],method='pearson'),align='right')
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'(Ps-Ns)/(Ps+Ns)',header=TRUE)
a<-table.element(a,docor(myresult[,4],myresult[,1],method='pearson'),align='right')
a<-table.element(a,docor(myresult[,4],myresult[,4],method='pearson'),align='right')
a<-table.element(a,docor(myresult[,4],myresult[,7],method='pearson'),align='right')
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'(Pc-Nc)/(Pc+Nc)',header=TRUE)
a<-table.element(a,docor(myresult[,7],myresult[,1],method='pearson'),align='right')
a<-table.element(a,docor(myresult[,7],myresult[,4],method='pearson'),align='right')
a<-table.element(a,docor(myresult[,7],myresult[,7],method='pearson'),align='right')
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Kendall tau rank correlations of survey scores (and p-values)',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'',header=TRUE)
a<-table.element(a,'mean',header=TRUE)
a<-table.element(a,'(Ps-Ns)/(Ps+Ns)',header=TRUE)
a<-table.element(a,'(Pc-Nc)/(Pc+Nc)',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'mean',header=TRUE)
a<-table.element(a,docor(myresult[,1],myresult[,1],method='kendall'),align='right')
a<-table.element(a,docor(myresult[,1],myresult[,4],method='kendall'),align='right')
a<-table.element(a,docor(myresult[,1],myresult[,7],method='kendall'),align='right')
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'(Ps-Ns)/(Ps+Ns)',header=TRUE)
a<-table.element(a,docor(myresult[,4],myresult[,1],method='kendall'),align='right')
a<-table.element(a,docor(myresult[,4],myresult[,4],method='kendall'),align='right')
a<-table.element(a,docor(myresult[,4],myresult[,7],method='kendall'),align='right')
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'(Pc-Nc)/(Pc+Nc)',header=TRUE)
a<-table.element(a,docor(myresult[,7],myresult[,1],method='kendall'),align='right')
a<-table.element(a,docor(myresult[,7],myresult[,4],method='kendall'),align='right')
a<-table.element(a,docor(myresult[,7],myresult[,7],method='kendall'),align='right')
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable2.tab')