Browse Source

Come up with some questions to talk about

master
Ryan Stewart 11 months ago
parent
commit
d3a4478918
  1. 303
      project.html
  2. 34
      project.rmd

303
project.html
File diff suppressed because it is too large
View File

34
project.rmd

@ -5,26 +5,28 @@ date: "7/28/2021"
output: html_document
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
# Import libraries
```{r}
library(tidyverse)
library(janitor)
```
## 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:
```{r cars}
summary(cars)
Read in the data
```{r}
df = read.csv("crime.csv") %>% clean_names()
summary(df)
```
## Including Plots
Questions to answer
You can also embed plots, for example:
1. Do states in the south have a higher crime rate? - Independent t test
1. Can the number of people in poverty predict crime rate? - Linear regression
1. What is the ratio of males to females? - Simple statistics
1. What is the average education level of people in the area vs the amount of crime that occurs? - Years of education per crime rate
1. Can education level predict the amount of crime that occurs? - Linear regression
1. Comparison of education and poverty - Paired t test
1. Is there more crime from young males compared to any other group?
1. Is crime reported more often in places that spend more on police?
```{r pressure, echo=FALSE}
plot(pressure)
```
1. Did things get worse over time? (Can interpret this on any other questions we have because it provides both some year and 10 years later) - Do tests on all previous questions
Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot.
Loading…
Cancel
Save