Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_STARS_Bullying_Study_alt.wasp
Title produced by softwareChi-Square Test
Date of computationFri, 01 Jun 2012 06:18:23 -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/2012/Jun/01/t1338545940ddntge7oz9m9etp.htm/, Retrieved Thu, 02 May 2024 07:35:22 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=168638, Retrieved Thu, 02 May 2024 07:35:22 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact75
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-     [Simple Linear Regression] [Triglyceridge Reg...] [2011-07-07 15:11:49] [74be16979710d4c4e7c6647856088456]
- R     [Simple Linear Regression] [Triglyceride] [2012-05-04 19:33:41] [98fd0e87c3eb04e0cc2efde01dbafab6]
- RMPD    [CARE Data - Boxplots and Scatterplot Matrix] [men and women weight] [2012-06-01 09:39:36] [c2d7eae68f5ec0337d2d2ba826377ba0]
- R         [CARE Data - Boxplots and Scatterplot Matrix] [men and women weight] [2012-06-01 09:44:45] [c2d7eae68f5ec0337d2d2ba826377ba0]
- RMPD          [Chi-Square Test] [diffs between men...] [2012-06-01 10:18:23] [23a0554fd40bcbfca1fa96ec3cebf579] [Current]
Feedback Forum

Post a new message
Dataseries X:
1	0
1	7
1	-1
1	-2
1	0
1	0
1	-1
1	-4
1	0
1	1
1	-5
1	110
1	-1
1	0
1	-5
1	-1
1	-9
1	0
1	1
1	0
1	-5
1	0
1	-1
1	-4
1	-5
1	0
1	2
1	-2
1	-2
1	1
1	0
1	2
1	3
1	0
1	5
2	-1
2	2
2	0
2	2
2	-2
2	1
2	0
2	4
2	-2
2	3
2	-1
2	-2
2	0
2	-3
2	-1
2	1
2	-5
2	1
2	-1
2	5
2	-1
2	-1
2	0
2	-5
2	3
2	-1
2	1
2	1
2	2
2	1
2	4
2	1
2	0
2	1
2	-1
2	0
2	-5
2	-1
2	-1
2	-1
2	1
2	-1
2	1
2	5
2	0
2	-2
2	-4
2	0
2	-2
2	1
2	2
2	0
2	-2
2	-2
2	1
2	-1
2	2
2	0
2	0
2	0
2	0
2	0
2	0
2	-1
2	2
2	1
2	2
2	0
2	4
2	-6
2	0
2	-2
2	0
2	-1
2	0
2	0
2	2
2	-1
2	-1
2	1
2	-4
2	0
2	0
2	0
2	0
2	0
2	1
2	-2
2	3
2	3
2	-1
2	0
2	2
2	-1
2	2
2	-2
2	-1
2	-2
2	-1
1	-2
1	0
1	0
1	4
1	3
1	2
1	-1
1	0
1	2
1	4
1	-4
1	1
1	1
1	1
1	0
1	1
1	1
1	-2
1	0
1	1
1	0
1	1
1	3
1	1
1	0
1	-2
1	3
1	-1
1	-1
1	0
1	2
1	4
1	0
1	0
1	5
1	4
1	1
1	1
1	-5
1	3
1	0
1	0
1	1
1	3
1	3
1	-1
1	-2




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'AstonUniversity' @ aston.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 & 'AstonUniversity' @ aston.wessa.net \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=168638&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]'AstonUniversity' @ aston.wessa.net[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=168638&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=168638&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'AstonUniversity' @ aston.wessa.net







Tabulation of Results
gender x wtdiff
-9-6-5-4-3-2-10123457110
110530792314574211
201321112126151043200

\begin{tabular}{lllllllll}
\hline
Tabulation of Results \tabularnewline gender x wtdiff \tabularnewline & -9 & -6 & -5 & -4 & -3 & -2 & -1 & 0 & 1 & 2 & 3 & 4 & 5 & 7 & 110 \tabularnewline 1 & 1 & 0 & 5 & 3 & 0 & 7 & 9 & 23 & 14 & 5 & 7 & 4 & 2 & 1 & 1 \tabularnewline 2 & 0 & 1 & 3 & 2 & 1 & 11 & 21 & 26 & 15 & 10 & 4 & 3 & 2 & 0 & 0 \tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=168638&T=1

[TABLE]
[ROW]
Tabulation of Results[/C][/ROW] [ROW]gender x wtdiff[/C][/ROW] [ROW][C] [/C][C]-9[/C][C]-6[/C][C]-5[/C][C]-4[/C][C]-3[/C][C]-2[/C][C]-1[/C][C]0[/C][C]1[/C][C]2[/C][C]3[/C][C]4[/C][C]5[/C][C]7[/C][C]110[/C][/ROW] [C]1[/C][C]1[/C][C]0[/C][C]5[/C][C]3[/C][C]0[/C][C]7[/C][C]9[/C][C]23[/C][C]14[/C][C]5[/C][C]7[/C][C]4[/C][C]2[/C][C]1[/C][C]1[/C][/ROW] [C]2[/C][C]0[/C][C]1[/C][C]3[/C][C]2[/C][C]1[/C][C]11[/C][C]21[/C][C]26[/C][C]15[/C][C]10[/C][C]4[/C][C]3[/C][C]2[/C][C]0[/C][C]0[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=168638&T=1

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

As an alternative you can also use a QR Code:  

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

Tabulation of Results
gender x wtdiff
-9-6-5-4-3-2-10123457110
110530792314574211
201321112126151043200







Tabulation of Expected Results
gender x wtdiff
-9-6-5-4-3-2-10123457110
10.450.453.622.270.458.1513.5922.213.146.84.983.171.810.450.45
20.550.554.382.730.559.8516.4126.815.868.26.023.832.190.550.55

\begin{tabular}{lllllllll}
\hline
Tabulation of Expected Results \tabularnewline gender x wtdiff \tabularnewline & -9 & -6 & -5 & -4 & -3 & -2 & -1 & 0 & 1 & 2 & 3 & 4 & 5 & 7 & 110 \tabularnewline 1 & 0.45 & 0.45 & 3.62 & 2.27 & 0.45 & 8.15 & 13.59 & 22.2 & 13.14 & 6.8 & 4.98 & 3.17 & 1.81 & 0.45 & 0.45 \tabularnewline 2 & 0.55 & 0.55 & 4.38 & 2.73 & 0.55 & 9.85 & 16.41 & 26.8 & 15.86 & 8.2 & 6.02 & 3.83 & 2.19 & 0.55 & 0.55 \tabularnewline \hline \end{tabular} %Source: https://freestatistics.org/blog/index.php?pk=168638&T=2

[TABLE]
[ROW]
Tabulation of Expected Results[/C][/ROW] [ROW]gender x wtdiff[/C][/ROW] [ROW][C] [/C][C]-9[/C][C]-6[/C][C]-5[/C][C]-4[/C][C]-3[/C][C]-2[/C][C]-1[/C][C]0[/C][C]1[/C][C]2[/C][C]3[/C][C]4[/C][C]5[/C][C]7[/C][C]110[/C][/ROW] [C]1[/C][C]0.45[/C][C]0.45[/C][C]3.62[/C][C]2.27[/C][C]0.45[/C][C]8.15[/C][C]13.59[/C][C]22.2[/C][C]13.14[/C][C]6.8[/C][C]4.98[/C][C]3.17[/C][C]1.81[/C][C]0.45[/C][C]0.45[/C][/ROW] [C]2[/C][C]0.55[/C][C]0.55[/C][C]4.38[/C][C]2.73[/C][C]0.55[/C][C]9.85[/C][C]16.41[/C][C]26.8[/C][C]15.86[/C][C]8.2[/C][C]6.02[/C][C]3.83[/C][C]2.19[/C][C]0.55[/C][C]0.55[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=168638&T=2

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

As an alternative you can also use a QR Code:  

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

Tabulation of Expected Results
gender x wtdiff
-9-6-5-4-3-2-10123457110
10.450.453.622.270.458.1513.5922.213.146.84.983.171.810.450.45
20.550.554.382.730.559.8516.4126.815.868.26.023.832.190.550.55







Statistical Results
Pearson's Chi-squared test
Chi Square Statistic12.75
Degrees of Freedom14
P value0.55

\begin{tabular}{lllllllll}
\hline
Statistical Results \tabularnewline
Pearson's Chi-squared test \tabularnewline
Chi Square Statistic & 12.75 \tabularnewline
Degrees of Freedom & 14 \tabularnewline
P value & 0.55 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=168638&T=3

[TABLE]
[ROW][C]Statistical Results[/C][/ROW]
[ROW][C]Pearson's Chi-squared test[/C][/ROW]
[ROW][C]Chi Square Statistic[/C][C]12.75[/C][/ROW]
[ROW][C]Degrees of Freedom[/C][C]14[/C][/ROW]
[ROW][C]P value[/C][C]0.55[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=168638&T=3

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

As an alternative you can also use a QR Code:  

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

Statistical Results
Pearson's Chi-squared test
Chi Square Statistic12.75
Degrees of Freedom14
P value0.55



Parameters (Session):
Parameters (R input):
par1 = 1 ; par2 = 2 ; par3 = Pearson Chi-Square ;
R code (references can be found in the software module):
cat1 <- as.numeric(par1) #
cat2<- as.numeric(par2) #
simulate.p.value=FALSE
if (par3 == 'Exact Pearson Chi Square by simulation') simulate.p.value=TRUE
x <- t(x)
(z <- array(unlist(x),dim=c(length(x[,1]),length(x[1,]))))
(table1 <- table(z[,cat1],z[,cat2]))
(V1<-dimnames(y)[[1]][cat1])
(V2<-dimnames(y)[[1]][cat2])
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Tabulation of Results',ncol(table1)+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,paste(V1,' x ', V2),ncol(table1)+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, ' ', 1,TRUE)
for(nc in 1:ncol(table1)){
a<-table.element(a, colnames(table1)[nc], 1, TRUE)
}
a<-table.row.end(a)
for(nr in 1:nrow(table1) ){
a<-table.element(a, rownames(table1)[nr], 1, TRUE)
for(nc in 1:ncol(table1) ){
a<-table.element(a, table1[nr, nc], 1, FALSE)
}
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
(cst<-chisq.test(table1, simulate.p.value=simulate.p.value) )
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Tabulation of Expected Results',ncol(table1)+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,paste(V1,' x ', V2),ncol(table1)+1,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, ' ', 1,TRUE)
for(nc in 1:ncol(table1)){
a<-table.element(a, colnames(table1)[nc], 1, TRUE)
}
a<-table.row.end(a)
for(nr in 1:nrow(table1) ){
a<-table.element(a, rownames(table1)[nr], 1, TRUE)
for(nc in 1:ncol(table1) ){
a<-table.element(a, round(cst$expected[nr, nc], digits=2), 1, FALSE)
}
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,'Statistical Results',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, cst$method, 2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a, 'Chi Square Statistic', 1, TRUE)
a<-table.element(a, round(cst$statistic, digits=2), 1,FALSE)
a<-table.row.end(a)
if(!simulate.p.value){
a<-table.row.start(a)
a<-table.element(a, 'Degrees of Freedom', 1, TRUE)
a<-table.element(a, cst$parameter, 1,FALSE)
a<-table.row.end(a)
}
a<-table.row.start(a)
a<-table.element(a, 'P value', 1, TRUE)
a<-table.element(a, round(cst$p.value, digits=2), 1,FALSE)
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable2.tab')