# ::Free Statistics and Forecasting Software::

v1.1.23-r7
Secure website (SSL) | Donate to wessa.net

### :: Chi-Square Test - Free Statistics Software (Calculator) ::

All rights reserved. The non-commercial (academic) use of this software is free of charge. The only thing that is asked in return is to cite this software when results are used in publications.

This free online software (calculator) computes the Pearson Chi-Square Test and the Exact Pearson Chi-Square Test by Simulation.

The default data vectors were abstracted from the study dataset provided on the STARS website.

This R module is used in Workshop 7 of the PY2224 statistics course at Aston University, UK.

Enter (or paste) a matrix (table) containing all data (time) series. Every column represents a different variable and must be delimited by a space or Tab. Every row represents a period in time (or category) and must be delimited by hard returns. The easiest way to enter data is to copy and paste a block of spreadsheet cells. Please, do not use commas or spaces to seperate groups of digits!

 Send output to: Browser Blue - Charts White Browser Black/White CSV MS Excel MS Word Data X (click to load default data) 'g' 'Many' 'Often' 'Both' 'Outside' 'Same' 'Boys' 'Usually' 'Usually' 'Yes' 'Yes' 'Rarely' 'g' 'Few' 'Not_bul' 'Physical' 'Outside' 'Same' 'Boys' 'Usually' 'Rarely' 'Yes' 'No' 'Dont_bul' 'g' 'Many' 'Rarely' 'Mental' 'Outside' 'Same' 'Girls' 'Dont_know' 'Dont_know' 'Yes' 'No' 'Dont_bul' 'g' 'Many' 'Rarely' 'Mental' 'Not_bul' 'Differnt' 'Boys' 'Dont_know' 'Rarely' 'No' 'Yes' 'Dont_bul' 'b' 'Many' 'Not_bul' 'Physical' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Not_bul' 'Physical' 'Outside' 'Differnt' 'Boys' 'Dont_know' 'Dont_know' 'No' 'No' 'Dont_bul' 'b' 'One' 'Not_bul' 'Not_bul' 'Not_bul' 'Same' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Few' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Rarely' 'Rarely' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'One' 'Rarely' 'Mental' 'Inside' 'Same' 'Boys' 'Dont_know' 'Rarely' 'No' 'No' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Rarely' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Few' 'Often' 'Mental' 'Outside' 'Both' 'Boys' 'Rarely' 'Sometimes' 'No' 'No' 'Dont_bul' 'g' 'Many' 'Often' 'Mental' 'Outside' 'Same' 'Both' 'Usually' 'Sometimes' 'No' 'Yes' 'Dont_bul' 'b' 'One' 'Often' 'Both' 'Outside' 'Differnt' 'Boys' 'Rarely' 'Sometimes' 'No' 'No' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Rarely' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Mental' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Rarely' 'Mental' 'Not_bul' 'Differnt' 'Boys' 'Sometimes' 'Sometimes' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Rarely' 'Both' 'Both' 'Both' 'Boys' 'Rarely' 'Usually' 'Yes' 'Yes' 'Rarely' 'b' 'Many' 'Not_bul' 'Mental' 'Outside' 'Differnt' 'Boys' 'Dont_know' 'Usually' 'No' 'No' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Sometimes' 'Sometimes' 'Yes' 'Yes' 'Dont_bul' 'b' 'Few' 'Rarely' 'Not_bul' 'Outside' 'Differnt' 'Boys' 'Dont_know' 'Dont_know' 'No' 'No' 'Dont_bul' 'b' 'Few' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Usually' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Few' 'Not_bul' 'Not_bul' 'Inside' 'Same' 'Boys' 'Rarely' 'Dont_know' 'No' 'Yes' 'Dont_bul' 'g' 'Few' 'Often' 'Mental' 'Outside' 'Differnt' 'Girls' 'Dont_know' 'Dont_know' 'No' 'No' 'Dont_bul' 'b' 'Many' 'Often' 'Both' 'Outside' 'Differnt' 'Boys' 'Usually' 'Rarely' 'No' 'Yes' 'Rarely' 'b' 'Few' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Rarely' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Not_bul' 'Mental' 'Not_bul' 'Not_bul' 'Boys' 'Dont_know' 'Usually' 'Yes' 'No' 'Dont_bul' 'b' 'Few' 'Rarely' 'Both' 'Outside' 'Differnt' 'Boys' 'Dont_know' 'Dont_know' 'Yes' 'Yes' 'Dont_bul' 'b' 'Many' 'Often' 'Both' 'Outside' 'Same' 'Boys' 'Dont_know' 'Sometimes' 'No' 'No' 'Dont_bul' 'g' 'Few' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Often' 'Both' 'Both' 'Same' 'Both' 'Usually' 'Usually' 'Yes' 'Yes' 'Often' 'g' 'One' 'Often' 'Mental' 'Outside' 'Differnt' 'Both' 'Sometimes' 'Usually' 'No' 'Yes' 'Dont_bul' 'b' 'Many' 'Often' 'Both' 'Both' 'Differnt' 'Both' 'Usually' 'Rarely' 'Yes' 'Yes' 'Dont_bul' 'g' 'Many' 'Rarely' 'Physical' 'Outside' 'Differnt' 'Boys' 'Dont_know' 'Dont_know' 'No' 'No' 'Dont_bul' 'b' 'Few' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Sometimes' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Rarely' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Often' 'Mental' 'Inside' 'Differnt' 'Boys' 'Sometimes' 'Sometimes' 'No' 'Yes' 'Dont_bul' 'g' 'Many' 'Often' 'Mental' 'Inside' 'Differnt' 'Both' 'Dont_know' 'Usually' 'Yes' 'Yes' 'Often' 'b' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Few' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'None' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Sometimes' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Rarely' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Rarely' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Few' 'Rarely' 'Both' 'Not_bul' 'Same' 'Girls' 'Rarely' 'Rarely' 'No' 'Yes' 'Rarely' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Sometimes' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Few' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Rarely' 'Not_bul' 'Not_bul' 'Rarely' 'b' 'Few' 'Rarely' 'Physical' 'Outside' 'Differnt' 'Boys' 'Rarely' 'Sometimes' 'Yes' 'No' 'Rarely' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Few' 'Often' 'Mental' 'Outside' 'Differnt' 'Girls' 'Usually' 'Rarely' 'No' 'Yes' 'Dont_bul' 'g' 'Many' 'Often' 'Both' 'Outside' 'Differnt' 'Both' 'Dont_know' 'Sometimes' 'Yes' 'Yes' 'Rarely' 'b' 'Few' 'Rarely' 'Physical' 'Outside' 'Differnt' 'Boys' 'Usually' 'Dont_know' 'No' 'No' 'Dont_bul' 'g' 'Few' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Rarely' 'Mental' 'Both' 'Both' 'Boys' 'Sometimes' 'Sometimes' 'No' 'No' 'Rarely' 'b' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Sometimes' 'Rarely' 'Not_bul' 'Not_bul' 'Rarely' 'b' 'Few' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Sometimes' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Usually' 'Sometimes' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Rarely' 'Mental' 'Outside' 'Same' 'Girls' 'Sometimes' 'Usually' 'No' 'Yes' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Usually' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Often' 'Not_bul' 'Outside' 'Same' 'Boys' 'Usually' 'Sometimes' 'Yes' 'Yes' 'Dont_bul' 'g' 'Many' 'Often' 'Mental' 'Both' 'Both' 'Girls' 'Usually' 'Usually' 'No' 'Yes' 'Often' 'g' 'Many' 'Rarely' 'Mental' 'Outside' 'Same' 'Girls' 'Dont_know' 'Rarely' 'Yes' 'Yes' 'Often' 'b' 'Many' 'Often' 'Both' 'Both' 'Differnt' 'Boys' 'Sometimes' 'Sometimes' 'No' 'Yes' 'Dont_bul' 'b' 'Many' 'Rarely' 'Both' 'Outside' 'Differnt' 'Boys' 'Sometimes' 'Dont_know' 'No' 'Yes' 'Rarely' 'g' 'None' 'Rarely' 'Not_bul' 'Outside' 'Not_bul' 'Girls' 'Dont_know' 'Dont_know' 'Yes' 'No' 'Dont_bul' 'b' 'One' 'Rarely' 'Mental' 'Outside' 'Same' 'Boys' 'Dont_know' 'Dont_know' 'Yes' 'No' 'Rarely' 'g' 'Few' 'Rarely' 'Mental' 'Outside' 'Same' 'Girls' 'Dont_know' 'Rarely' 'Yes' 'Yes' 'Often' 'b' 'Few' 'Often' 'Mental' 'Outside' 'Same' 'Boys' 'Usually' 'Dont_know' 'No' 'Yes' 'Rarely' 'b' 'Many' 'Not_bul' 'Mental' 'Not_bul' 'Not_bul' 'Not_bul' 'Rarely' 'Rarely' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Often' 'Physical' 'Inside' 'Same' 'Boys' 'Rarely' 'Sometimes' 'No' 'Yes' 'Often' 'g' 'Few' 'Rarely' 'Mental' 'Outside' 'Same' 'Girls' 'Rarely' 'Rarely' 'No' 'Yes' 'Dont_bul' 'b' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Usually' 'Sometimes' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Usually' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Few' 'Rarely' 'Both' 'Both' 'Both' 'Both' 'Usually' 'Usually' 'Yes' 'Yes' 'Rarely' 'g' 'Many' 'Rarely' 'Mental' 'Both' 'Both' 'Both' 'Sometimes' 'Sometimes' 'No' 'Yes' 'Rarely' 'g' 'Many' 'Not_bul' 'Mental' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Sometimes' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Rarely' 'Mental' 'Outside' 'Same' 'Boys' 'Sometimes' 'Sometimes' 'No' 'No' 'Rarely' 'b' 'Many' 'Rarely' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Rarely' 'Sometimes' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Rarely' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Sometimes' 'Sometimes' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Often' 'Mental' 'Outside' 'Same' 'Boys' 'Usually' 'Sometimes' 'No' 'No' 'Dont_bul' 'g' 'One' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Rarely' 'Mental' 'Outside' 'Same' 'Both' 'Dont_know' 'Sometimes' 'No' 'No' 'Rarely' 'g' 'Few' 'Not_bul' 'Mental' 'Both' 'Same' 'Both' 'Sometimes' 'Sometimes' 'No' 'No' 'Dont_bul' 'g' 'Few' 'Often' 'Physical' 'Outside' 'Differnt' 'Both' 'Dont_know' 'Dont_know' 'Yes' 'Yes' 'Dont_bul' 'b' 'Few' 'Often' 'Not_bul' 'Outside' 'Same' 'Boys' 'Usually' 'Dont_know' 'No' 'No' 'Rarely' 'b' 'Few' 'Often' 'Physical' 'Not_bul' 'Differnt' 'Boys' 'Rarely' 'Rarely' 'Yes' 'No' 'Rarely' 'g' 'Many' 'Not_bul' 'Mental' 'Inside' 'Same' 'Not_bul' 'Sometimes' 'Sometimes' 'Yes' 'No' 'Dont_bul' 'b' 'Many' 'Often' 'Mental' 'Inside' 'Differnt' 'Boys' 'Dont_know' 'Sometimes' 'No' 'Yes' 'Rarely' 'b' 'Many' 'Rarely' 'Mental' 'Both' 'Both' 'Boys' 'Dont_know' 'Dont_know' 'Yes' 'Yes' 'Rarely' 'g' 'Few' 'Often' 'Mental' 'Both' 'Same' 'Girls' 'Rarely' 'Dont_know' 'No' 'Yes' 'Rarely' 'g' 'Many' 'Often' 'Mental' 'Both' 'Same' 'Girls' 'Sometimes' 'Dont_know' 'Yes' 'Yes' 'Dont_bul' 'b' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Usually' 'Rarely' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Mental' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Rarely' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Rarely' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Few' 'Often' 'Mental' 'Outside' 'Not_bul' 'Both' 'Usually' 'Rarely' 'No' 'Yes' 'Dont_bul' 'g' 'One' 'Often' 'Both' 'Both' 'Both' 'Girls' 'Sometimes' 'Sometimes' 'Yes' 'Yes' 'Dont_bul' 'g' 'Many' 'Often' 'Mental' 'Outside' 'Same' 'Girls' 'Dont_know' 'Sometimes' 'No' 'Yes' 'Rarely' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Usually' 'Sometimes' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Sometimes' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Usually' 'Sometimes' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Rarely' 'Mental' 'Both' 'Same' 'Girls' 'Sometimes' 'Sometimes' 'Yes' 'Yes' 'Dont_bul' 'g' 'Many' 'Often' 'Mental' 'Both' 'Both' 'Boys' 'Dont_know' 'Dont_know' 'Yes' 'No' 'Dont_bul' 'b' 'Few' 'Rarely' 'Mental' 'Both' 'Both' 'Boys' 'Sometimes' 'Sometimes' 'No' 'No' 'Dont_bul' 'b' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Often' 'Physical' 'Both' 'Differnt' 'Boys' 'Sometimes' 'Sometimes' 'Not_bul' 'No' 'Dont_bul' 'g' 'Many' 'Often' 'Both' 'Inside' 'Same' 'Girls' 'Dont_know' 'Sometimes' 'Yes' 'Yes' 'Often' 'g' 'Many' 'Rarely' 'Physical' 'Outside' 'Same' 'Boys' 'Sometimes' 'Sometimes' 'No' 'No' 'Dont_bul' 'b' 'Many' 'Often' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Rarely' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Few' 'Often' 'Both' 'Outside' 'Both' 'Boys' 'Sometimes' 'Rarely' 'Yes' 'No' 'Dont_bul' 'b' 'Many' 'Often' 'Not_bul' 'Outside' 'Both' 'Boys' 'Sometimes' 'Sometimes' 'No' 'No' 'Often' 'b' 'Few' 'Rarely' 'Physical' 'Outside' 'Same' 'Boys' 'Rarely' 'Rarely' 'No' 'No' 'Dont_bul' 'b' 'Many' 'Not_bul' 'Both' 'Outside' 'Differnt' 'Boys' 'Sometimes' 'Rarely' 'No' 'No' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Often' 'Both' 'Both' 'Both' 'Boys' 'Dont_know' 'Sometimes' 'No' 'Yes' 'Dont_bul' 'b' 'Many' 'Rarely' 'Both' 'Outside' 'Both' 'Boys' 'Dont_know' 'Sometimes' 'No' 'Yes' 'Rarely' 'b' 'Many' 'Often' 'Physical' 'Outside' 'Same' 'Boys' 'Rarely' 'Rarely' 'No' 'Yes' 'Rarely' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Few' 'Rarely' 'Mental' 'Inside' 'Same' 'Girls' 'Dont_know' 'Sometimes' 'No' 'No' 'Rarely' 'g' 'One' 'Often' 'Mental' 'Both' 'Same' 'Girls' 'Dont_know' 'Rarely' 'No' 'Yes' 'Rarely' 'g' 'Few' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Sometimes' 'Sometimes' 'Not_bul' 'Not_bul' 'Rarely' 'b' 'Many' 'Rarely' 'Mental' 'Outside' 'Differnt' 'Boys' 'Dont_know' 'Sometimes' 'No' 'No' 'Dont_bul' 'g' 'Few' 'Rarely' 'Mental' 'Outside' 'Same' 'Boys' 'Rarely' 'Rarely' 'No' 'Yes' 'Rarely' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Sometimes' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Rarely' 'Mental' 'Both' 'Both' 'Boys' 'Rarely' 'Sometimes' 'Yes' 'No' 'Often' 'g' 'Many' 'Rarely' 'Physical' 'Outside' 'Differnt' 'Boys' 'Sometimes' 'Dont_know' 'Yes' 'Yes' 'Dont_bul' 'g' 'Many' 'Rarely' 'Both' 'Outside' 'Both' 'Boys' 'Sometimes' 'Dont_know' 'No' 'Yes' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Sometimes' 'Sometimes' 'Not_bul' 'Not_bul' 'Rarely' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Rarely' 'Usually' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Sometimes' 'Sometimes' 'Not_bul' 'Not_bul' 'Often' 'g' 'Many' 'Often' 'Mental' 'Outside' 'Same' 'Girls' 'Rarely' 'Sometimes' 'No' 'No' 'Rarely' 'b' 'Many' 'Rarely' 'Physical' 'Outside' 'Same' 'Boys' 'Sometimes' 'Dont_know' 'Yes' 'Yes' 'Dont_bul' 'b' 'Many' 'Rarely' 'Mental' 'Outside' 'Differnt' 'Boys' 'Dont_know' 'Rarely' 'No' 'No' 'Rarely' 'g' 'Few' 'Often' 'Mental' 'Outside' 'Both' 'Both' 'Usually' 'Dont_know' 'Yes' 'No' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Not_bul' 'Both' 'Outside' 'Not_bul' 'Not_bul' 'Dont_know' 'Sometimes' 'Not_bul' 'Not_bul' 'Rarely' 'g' 'Few' 'Often' 'Mental' 'Outside' 'Differnt' 'Boys' 'Dont_know' 'Dont_know' 'No' 'No' 'Dont_bul' 'b' 'Many' 'Rarely' 'Mental' 'Outside' 'Both' 'Boys' 'Dont_know' 'Usually' 'No' 'No' 'Dont_bul' 'g' 'Few' 'Rarely' 'Mental' 'Both' 'Same' 'Boys' 'Dont_know' 'Sometimes' 'No' 'No' 'Dont_bul' 'g' 'Few' 'Often' 'Mental' 'Outside' 'Same' 'Girls' 'Dont_know' 'Sometimes' 'No' 'Yes' 'Dont_bul' 'b' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Usually' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Usually' 'Sometimes' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'One' 'Rarely' 'Mental' 'Outside' 'Same' 'Girls' 'Dont_know' 'Rarely' 'No' 'No' 'Dont_bul' 'b' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Often' 'Both' 'Outside' 'Same' 'Boys' 'Usually' 'Sometimes' 'No' 'Yes' 'Dont_bul' 'g' 'Few' 'Often' 'Both' 'Outside' 'Same' 'Boys' 'Sometimes' 'Sometimes' 'No' 'Yes' 'Rarely' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Usually' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Few' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Sometimes' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Sometimes' 'Rarely' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Rarely' 'Both' 'Outside' 'Same' 'Boys' 'Dont_know' 'Sometimes' 'No' 'No' 'Dont_bul' 'b' 'Many' 'Often' 'Mental' 'Outside' 'Both' 'Boys' 'Sometimes' 'Sometimes' 'No' 'No' 'Rarely' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Rarely' 'Mental' 'Outside' 'Same' 'Boys' 'Dont_know' 'Sometimes' 'No' 'No' 'Rarely' 'g' 'None' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Sometimes' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Often' 'Mental' 'Outside' 'Same' 'Boys' 'Dont_know' 'Sometimes' 'No' 'No' 'Rarely' 'b' 'Many' 'Rarely' 'Physical' 'Outside' 'Same' 'Boys' 'Rarely' 'Sometimes' 'No' 'No' 'Dont_bul' 'b' 'Few' 'Rarely' 'Mental' 'Outside' 'Same' 'Boys' 'Usually' 'Rarely' 'Yes' 'No' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Sometimes' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Often' 'Mental' 'Outside' 'Differnt' 'Boys' 'Sometimes' 'Rarely' 'No' 'No' 'Rarely' 'g' 'Many' 'Often' 'Both' 'Both' 'Both' 'Boys' 'Sometimes' 'Dont_know' 'No' 'No' 'Rarely' 'b' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Sometimes' 'Not_bul' 'Not_bul' 'Often' 'g' 'One' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Sometimes' 'Usually' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Usually' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Usually' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Often' 'Mental' 'Not_bul' 'Not_bul' 'Both' 'Sometimes' 'Sometimes' 'Yes' 'Yes' 'Dont_bul' 'b' 'Many' 'Rarely' 'Physical' 'Outside' 'Same' 'Boys' 'Dont_know' 'Sometimes' 'Yes' 'Yes' 'Dont_bul' 'b' 'Many' 'Often' 'Mental' 'Inside' 'Not_bul' 'Both' 'Sometimes' 'Sometimes' 'No' 'Yes' 'Often' 'g' 'Many' 'Rarely' 'Mental' 'Inside' 'Same' 'Boys' 'Dont_know' 'Sometimes' 'No' 'No' 'Dont_bul' 'g' 'Few' 'Often' 'Not_bul' 'Outside' 'Same' 'Both' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Rarely' 'Physical' 'Outside' 'Differnt' 'Boys' 'Sometimes' 'Sometimes' 'Yes' 'Yes' 'Rarely' 'g' 'Many' 'Rarely' 'Both' 'Both' 'Both' 'Both' 'Sometimes' 'Sometimes' 'No' 'No' 'Dont_bul' 'b' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Rarely' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Sometimes' 'Sometimes' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Rarely' 'Mental' 'Outside' 'Differnt' 'Boys' 'Rarely' 'Sometimes' 'No' 'No' 'Dont_bul' 'b' 'Few' 'Rarely' 'Mental' 'Outside' 'Differnt' 'Boys' 'Dont_know' 'Dont_know' 'No' 'Yes' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Usually' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Mental' 'Not_bul' 'Not_bul' 'Not_bul' 'Sometimes' 'Sometimes' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Few' 'Rarely' 'Physical' 'Not_bul' 'Differnt' 'Boys' 'Usually' 'Sometimes' 'No' 'No' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Mental' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Rarely' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Often' 'Both' 'Both' 'Same' 'Both' 'Dont_know' 'Sometimes' 'No' 'Yes' 'Often' 'b' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Usually' 'Usually' 'Not_bul' 'Not_bul' 'Dont_bul' 'g' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Usually' 'Dont_know' 'Not_bul' 'Not_bul' 'Dont_bul' 'b' 'Many' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Not_bul' 'Dont_know' 'Usually' 'Not_bul' 'Not_bul' 'Dont_bul' Names of X columns: gender friends how_often_bullied type_of_bullying where_bullied which_year gender_of_bully teachers_stop children_stop told_teacher told_home how_often_bully Column Containing First Factor Variable Column Containing Second Factor Variable Type of Chi Square test to use (?) Pearson Chi-Square Exact Pearson Chi Square by simulation

Click here to edit the underlying code of this R Module.

 Source code of R 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')
 Top | Output | Charts | References | History | Feedback

 Cite this software as: Ian E. Holliday, 2012, STARS Bullying Study (v1.0.3) in Free Statistics Software (v1.1.23-r7), Office for Research Development and Education, URL http://www.wessa.net/Ian.Holliday/rwasp_STARS_Bullying_Study_alt.wasp/ The R code is based on : Statistical Resources from Real Datasets, URL http://stars.ac.uk/
 Top | Output | Charts | References | History | Feedback
 Top | Output | Charts | References | History | Feedback
 To cite Wessa.net in publications use:Wessa, P. (2013), Free Statistics Software, Office for Research Development and Education, version 1.1.23-r7, URL http://www.wessa.net/ © All rights reserved. Academic license for non-commercial use only. The free use of the scientific content, services, and applications in this website is granted for non commercial use only. In any case, the source (url) should always be clearly displayed. Under no circumstances are you allowed to reproduce, copy or redistribute the design, layout, or any content of this website (for commercial use) including any materials contained herein without the express written permission. Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. We make no warranties or representations as to the accuracy or completeness of such information (or software), and it assumes no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site. Software Version : 1.1.23-r7Algorithms & Software : Patrick Wessa, PhDServer : www.wessa.net
 © Wessa.Net 2002-2013

 [Select module] Main Menu Equation Plotter   Scientific Forecasting   Descriptive Statistics -Central Tendency -Variability -Skewness/Kurtosis -Quartiles -Percentiles -Stem and Leaf -Histogram -Kernel Density -Harrell-Davis -Univariate EDA -Bootstrap -Blocked Bootstrap -Mean Plot -SD Plot -(P)ACF -Spectrum -SD Mean-Plot -Variance Reduction -Correlation -Kendall Rank Corr. -Simple Regression -Bivariate KDE -Box-Cox Linearity -Regression Validation -Back-Back Histo. -Partial Correlation -Trivariate Scatter -Kendall tau Matrix -Notched Boxplots -Star Plot   Distributions -Normal ML Fit -Beta ML Fit -Cauchy ML Fit -Exponential ML Fit -Gamma ML Fit -Lognormal ML Fit -Logistic ML Fit -Neg. Binom. ML Fit -Poisson ML Fit -Weibull ML Fit -Tukey lambda PPCC -Box-Cox Normality   Hypothesis Tests -Mean -Skewness/Kurtosis   Multiple Regression -Estimate Equation   About this server

 Home Page Equation Plotter Time Series Analysis Multiple Regression Descriptive Statistics Statistical Distributions Hypothesis Testing Simon Fraser University Aston University Academic citations Computations Archive Search Computations R Project FAQ About Wessa.net Powered by Linux Server status page Any R Server'Herman Ole Andreas Wold''Gwilym Jenkins''Sir Ronald Aylmer Fisher''George Udny Yule''Gertrude Mary Cox''Sir Maurice George Kendall'Installed PackagesHistory list Edit R Code