This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
Do children eat more when they help make the food? “Yes”
There is evidence to support that children eat more when they help make the food (\(t\) = 2.82, \(df\) = 44.8, p < 0.05). The children who help make the food eat on average 84.6 more kCalories. Please see the table and chart below.
## package 'kableExtra' successfully unpacked and MD5 sums checked
##
## The downloaded binary packages are in
## C:\Users\fiona\AppData\Local\Temp\RtmpYZe304\downloaded_packages
## Warning in pal_name(palette, type): Unknown palette dark2
| helpedinprep | Count | Mean | Standard Deviation |
|---|---|---|---|
| help | 25 | 431.4 | 105.7 |
| not help | 22 | 346.8 | 99.5 |
Does the brand of Margarine matter ? "“Yes”"
There is evidence to suggest that the use of Margarine “A” reduces Cholesterol campared to Margarine “B” (Wilcoxon rank sum test \(w\) = 314, p < 0.01). The use of Margarine “A” yealds a reduction of 3.78 units on average. Please see the table and chart below.
## `summarise()` has grouped output by 'Margarine'. You can override using the `.groups` argument.
| Margarine | Time | Count | Mean | Standard Deviation |
|---|---|---|---|---|
| A | After | 20 | 5.56 | 1.24 |
| A | NA | 20 | 9.34 | 4.50 |
| B | After | 20 | 8.21 | 2.36 |
| B | NA | 20 | 8.52 | 2.17 |
Do students in different locations have different priorities? "“Yes”"
There is a relationship between a students location and their school goals (\(\chi^2\) = 21.627, \(df\) = 4, p < 0.001). Students in a Rural setting prefer Athletics more than their peers and don’t like academics as much.
## package 'vcd' successfully unpacked and MD5 sums checked
##
## The downloaded binary packages are in
## C:\Users\fiona\AppData\Local\Temp\RtmpYZe304\downloaded_packages
##
## Pearson's Chi-squared test
##
## data: data_tab
## X-squared = 21.627, df = 4, p-value = 0.0002377
Does the ordering of a Candidate on a ballot matter?“No”
There does not appear a relationship between the order of a Candidate on the ballot and their votes (\(\chi^2\) = 0.63124, \(df\) = 4, p > 0.05)
## Warning in chisq.test(data_tab): Chi-squared approximation may be incorrect
##
## Pearson's Chi-squared test
##
## data: data_tab
## X-squared = 0.63124, df = 4, p-value = 0.9595