My pitch presentation

Chi-square Test

Ana Nieto
University of Salamanca

How to use the app

This app has the aim of performing a chi-square test of two variables from a dataset introduced by the user.

The user must select a dataset in csv format and choose the options to permit the app properly read the file. Once this action has been executed, the user must select two variables from the listboxes at the bottom.

With these variables, the app performs a chi-square test and shows the contingency table of the two variables, the results of the chi-square test, a barplot showing the distribution of the values of the variables and the first five lines of the dataset.

Input

The app shows the following inputs:

  1. File input to select the file to be analized.

  2. Radiobutton to select the separator.

  3. Radiobutton to select the quote.

  4. Listbox to select the first variable involved in the test.

  5. Listbox to select the second variable involved in the test.

Output

The app shows the following outputs:

  1. A contingency table with the two selected variables.

  2. The result of the Chi-Square test.

  3. A barplot showing the distribution of the values of the variables.

  4. The first five lines of the dataset.

Contingency table and test

Contingency table

##    
##      3  4  5
##   4  1  8  2
##   6  2  4  1
##   8 12  0  2

Chi-square test

## 
##  Pearson's Chi-squared test
## 
## data:  mtcars$cyl and mtcars$gear
## X-squared = 18.04, df = 4, p-value = 0.001214

Barplot

plot of chunk unnamed-chunk-3