R Markdown

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:

Kidscalories

Question

Do children eat more when they help make the food? “Yes”

Results

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.

Figures

## 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
Do children eat more when they help make the food?
helpedinprep Count Mean Standard Deviation
help 25 431.4 105.7
not help 22 346.8 99.5

CholestoralData

Question

Does the brand of Margarine matter ? "“Yes”"

Results

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.

Figures

## `summarise()` has grouped output by 'Margarine'. You can override using the `.groups` argument.
Does the brand of Margarine matter?
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

PrioritiesData

Question

Do students in different locations have different priorities? "“Yes”"

Results

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.

Figures

## 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

VotingData

Question

Does the ordering of a Candidate on a ballot matter?“No”

Results

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)

Figures

## 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