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 computationThu, 11 Dec 2014 15:07:41 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2014/Dec/11/t1418310552ywsf7v1c5wfjw8g.htm/, Retrieved Fri, 01 Nov 2024 00:11:10 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=266090, Retrieved Fri, 01 Nov 2024 00:11:10 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact79
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Chi-Square Test] [workshop 9 q2] [2014-12-11 15:07:41] [38a0729e2ae5b8682dce2a485592e214] [Current]
Feedback Forum

Post a new message
Dataseries X:
'Both'	'g'
'Physical'	'g'
'Mental'	'g'
'Mental'	'g'
'Physical'	'b'
'Physical'	'b'
'Not_bul'	'b'
'Not_bul'	'g'
'Not_bul'	'g'
'Mental'	'b'
'Not_bul'	'g'
'Mental'	'b'
'Mental'	'g'
'Both'	'b'
'Not_bul'	'g'
'Mental'	'g'
'Mental'	'b'
'Both'	'b'
'Mental'	'b'
'Not_bul'	'g'
'Not_bul'	'b'
'Not_bul'	'b'
'Not_bul'	'g'
'Mental'	'g'
'Both'	'b'
'Not_bul'	'b'
'Mental'	'b'
'Both'	'b'
'Both'	'b'
'Not_bul'	'g'
'Both'	'b'
'Mental'	'g'
'Both'	'b'
'Physical'	'g'
'Not_bul'	'b'
'Not_bul'	'g'
'Mental'	'b'
'Mental'	'g'
'Not_bul'	'b'
'Not_bul'	'g'
'Not_bul'	'g'
'Not_bul'	'b'
'Both'	'g'
'Not_bul'	'g'
'Not_bul'	'b'
'Not_bul'	'g'
'Physical'	'b'
'Not_bul'	'g'
'Mental'	'g'
'Both'	'g'
'Physical'	'b'
'Not_bul'	'g'
'Not_bul'	'b'
'Mental'	'g'
'Not_bul'	'b'
'Not_bul'	'b'
'Not_bul'	'g'
'Mental'	'g'
'Not_bul'	'g'
'Not_bul'	'g'
'Mental'	'g'
'Mental'	'g'
'Both'	'b'
'Both'	'b'
'Not_bul'	'g'
'Mental'	'b'
'Mental'	'g'
'Mental'	'b'
'Mental'	'b'
'Physical'	'b'
'Mental'	'g'
'Not_bul'	'b'
'Not_bul'	'g'
'Not_bul'	'b'
'Both'	'g'
'Mental'	'g'
'Mental'	'g'
'Mental'	'b'
'Not_bul'	'b'
'Not_bul'	'b'
'Mental'	'b'
'Not_bul'	'g'
'Mental'	'g'
'Mental'	'g'
'Physical'	'g'
'Not_bul'	'b'
'Physical'	'b'
'Mental'	'g'
'Mental'	'b'
'Mental'	'b'
'Mental'	'g'
'Mental'	'g'
'Not_bul'	'b'
'Not_bul'	'g'
'Not_bul'	'b'
'Mental'	'g'
'Not_bul'	'g'
'Mental'	'g'
'Both'	'g'
'Mental'	'g'
'Not_bul'	'g'
'Not_bul'	'g'
'Not_bul'	'b'
'Mental'	'g'
'Mental'	'g'
'Mental'	'b'
'Not_bul'	'b'
'Not_bul'	'g'
'Physical'	'b'
'Both'	'g'
'Physical'	'g'
'Not_bul'	'b'
'Not_bul'	'g'
'Both'	'b'
'Not_bul'	'b'
'Physical'	'b'
'Both'	'b'
'Not_bul'	'g'
'Both'	'g'
'Both'	'b'
'Physical'	'b'
'Not_bul'	'g'
'Not_bul'	'g'
'Mental'	'g'
'Mental'	'g'
'Not_bul'	'g'
'Mental'	'b'
'Mental'	'g'
'Not_bul'	'g'
'Mental'	'b'
'Physical'	'g'
'Both'	'g'
'Not_bul'	'g'
'Not_bul'	'g'
'Not_bul'	'b'
'Mental'	'g'
'Physical'	'b'
'Mental'	'b'
'Mental'	'g'
'Not_bul'	'g'
'Both'	'b'
'Mental'	'g'
'Mental'	'b'
'Mental'	'g'
'Mental'	'g'
'Not_bul'	'b'
'Not_bul'	'g'
'Mental'	'g'
'Not_bul'	'b'
'Both'	'b'
'Both'	'g'
'Not_bul'	'g'
'Not_bul'	'g'
'Not_bul'	'b'
'Not_bul'	'g'
'Not_bul'	'g'
'Not_bul'	'g'
'Both'	'b'
'Mental'	'b'
'Not_bul'	'g'
'Mental'	'b'
'Not_bul'	'g'
'Mental'	'b'
'Physical'	'b'
'Mental'	'b'
'Not_bul'	'g'
'Mental'	'b'
'Both'	'g'
'Not_bul'	'b'
'Not_bul'	'g'
'Not_bul'	'b'
'Not_bul'	'b'
'Not_bul'	'g'
'Mental'	'g'
'Physical'	'b'
'Mental'	'b'
'Mental'	'g'
'Not_bul'	'g'
'Physical'	'b'
'Both'	'g'
'Not_bul'	'b'
'Not_bul'	'b'
'Mental'	'g'
'Mental'	'b'
'Not_bul'	'g'
'Not_bul'	'b'
'Mental'	'g'
'Physical'	'b'
'Mental'	'g'
'Both'	'g'
'Not_bul'	'b'
'Not_bul'	'g'
'Not_bul'	'b'




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

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







Tabulation of Results
type_of_bullying x gender
bg
Both1512
Mental2540
Not_bul3448
Physical145

\begin{tabular}{lllllllll}
\hline
Tabulation of Results \tabularnewline
type_of_bullying  x  gender \tabularnewline
  & b & g \tabularnewline
Both & 15 & 12 \tabularnewline
Mental & 25 & 40 \tabularnewline
Not_bul & 34 & 48 \tabularnewline
Physical & 14 & 5 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=266090&T=1

[TABLE]
[ROW][C]Tabulation of Results[/C][/ROW]
[ROW][C]type_of_bullying  x  gender[/C][/ROW]
[ROW][C] [/C][C]b[/C][C]g[/C][/ROW]
[C]Both[/C][C]15[/C][C]12[/C][/ROW]
[C]Mental[/C][C]25[/C][C]40[/C][/ROW]
[C]Not_bul[/C][C]34[/C][C]48[/C][/ROW]
[C]Physical[/C][C]14[/C][C]5[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=266090&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=266090&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
type_of_bullying x gender
bg
Both1512
Mental2540
Not_bul3448
Physical145







Tabulation of Expected Results
type_of_bullying x gender
bg
Both12.3114.69
Mental29.6435.36
Not_bul37.3944.61
Physical8.6610.34

\begin{tabular}{lllllllll}
\hline
Tabulation of Expected Results \tabularnewline
type_of_bullying  x  gender \tabularnewline
  & b & g \tabularnewline
Both & 12.31 & 14.69 \tabularnewline
Mental & 29.64 & 35.36 \tabularnewline
Not_bul & 37.39 & 44.61 \tabularnewline
Physical & 8.66 & 10.34 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=266090&T=2

[TABLE]
[ROW][C]Tabulation of Expected Results[/C][/ROW]
[ROW][C]type_of_bullying  x  gender[/C][/ROW]
[ROW][C] [/C][C]b[/C][C]g[/C][/ROW]
[C]Both[/C][C]12.31[/C][C]14.69[/C][/ROW]
[C]Mental[/C][C]29.64[/C][C]35.36[/C][/ROW]
[C]Not_bul[/C][C]37.39[/C][C]44.61[/C][/ROW]
[C]Physical[/C][C]8.66[/C][C]10.34[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=266090&T=2

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=266090&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
type_of_bullying x gender
bg
Both12.3114.69
Mental29.6435.36
Not_bul37.3944.61
Physical8.6610.34







Statistical Results
Pearson's Chi-squared test
Chi Square Statistic9.02
Degrees of Freedom3
P value0.03

\begin{tabular}{lllllllll}
\hline
Statistical Results \tabularnewline
Pearson's Chi-squared test \tabularnewline
Chi Square Statistic & 9.02 \tabularnewline
Degrees of Freedom & 3 \tabularnewline
P value & 0.03 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=266090&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]9.02[/C][/ROW]
[ROW][C]Degrees of Freedom[/C][C]3[/C][/ROW]
[ROW][C]P value[/C][C]0.03[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=266090&T=3

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=266090&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 Statistic9.02
Degrees of Freedom3
P value0.03



Parameters (Session):
par1 = 1 ; par2 = 2 ; par3 = Pearson Chi-Square ;
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')