Ana Belén Nieto Librero
19/5/2020
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.
The app shows the following inputs:
File input to select the file to be analized.
Radiobutton to select the separator.
Radiobutton to select the quote.
Listbox to select the first variable involved in the test.
Listbox to select the second variable involved in the test.
The app shows the following outputs:
A contingency table with the two selected variables.
The result of the Chi-Square test.
A barplot showing the distribution of the values of the variables.
The first five lines of the dataset.
##
## 3 4 5
## 4 1 8 2
## 6 2 4 1
## 8 12 0 2
##
## Pearson's Chi-squared test
##
## data: mtcars$cyl and mtcars$gear
## X-squared = 18.036, df = 4, p-value = 0.001214