Publications by Joey Cartwright

Final Project Code

21.05.2020

library(readr) library(ggplot2) library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union Cancer is the uncontrollable growth of cells. Cancer shows itself in many ...

7308 sym R (6684 sym/43 pcs) 7 img

Linear Regression R Lab

14.04.2020

download.file("http://www.openintro.org/stat/data/mlb11.RData", destfile = "mlb11.RData") load("mlb11.RData") Exercise 1) What type of plot would you use to display the relationship between runs and one of the other numerical variables? Plot this relationship using the variable at_bats as the predictor. Does the relationship look linear? If you...

2493 sym R (2368 sym/16 pcs) 7 img

Cartwright -Week 5 R lab

03.03.2020

download.file("http://www.openintro.org/stat/data/ames.RData", destfile = "ames.RData") load("ames.RData") area <- ames$Gr.Liv.Area price <- ames$SalePrice summary(area) ## Min. 1st Qu. Median Mean 3rd Qu. Max. ## 334 1126 1442 1500 1743 5642 hist(area) #Exercise 1) The data is skewed, with a right tail. samp1...

10 sym R (66953 sym/14 pcs) 5 img

Kobe -Cartwright, Hayden 021720

18.02.2020

download.file("http://www.openintro.org/stat/data/kobe.RData", destfile = "kobe.RData") load("kobe.RData") head(kobe) ## vs game quarter time description ## 1 ORL 1 1 9:47 Kobe Bryant makes 4-foot two point shot ## 2 ORL 1 1 9:07 Kob...

1069 sym R (4591 sym/35 pcs) 2 img

Confidence Interval R Lab Cartwright, Hayden

24.03.2020

download.file("http://www.openintro.org/stat/data/ames.RData", destfile = "ames.RData") load("ames.RData") population <- ames$Gr.Liv.Area samp <- sample(population, 60) Exercise 1: Describe the distribution of your sample. What would you say is the “typical” size within your sample? Also state precisely what you interpreted “typical” ...

2350 sym R (845 sym/10 pcs)

Cartwright, Joey Rab Lab Categorical Data

07.04.2020

Exercise 1) In the first paragraph, several key findings are reported. Do these percentages appear to be sample statistics (derived from the data sample) or population parameters? These percentages appear to be sample statistics because this study was done through a poll and doesn’t account for the entire population. Exercise 2) The title of ...

3867 sym R (3233 sym/26 pcs) 6 img

Project 1 - Policing in the Community

14.10.2020

Policing in the community has been a hot button topic for almost a decade now, after the shooting of Travon Martin in 2012. Martin was a 17-year-old African American kid, who was fatally shot by George Zimmerman. While this wasn’t directly caused by a police officer, this has to do with the systematic racist involved in law enforcement. Zimmerm...

3358 sym R (1397 sym/14 pcs) 2 img

Air Quality Data Cartwright, Hayden

14.09.2020

library(tidyverse) ## Warning: package 'tidyverse' was built under R version 4.0.2 ## -- Attaching packages ------------------------------------------------------------------------- tidyverse 1.3.0 -- ## v ggplot2 3.3.0 v purrr 0.3.4 ## v tibble 3.0.1 v dplyr 0.8.5 ## v tidyr 1.1.2 v stringr 1.4.0 ## v readr 1.3.1 v fo...

10 sym R (3767 sym/30 pcs) 5 img

Week 8 Homework

28.10.2020

Load Library library("dslabs") ## Warning: package 'dslabs' was built under R version 4.0.3 library(tidyverse) ## Warning: package 'tidyverse' was built under R version 4.0.2 ## -- Attaching packages ------------------------------------------------------------------------- tidyverse 1.3.0 -- ## v ggplot2 3.3.0 v purrr 0.3.4 ## v tibble 3....

831 sym R (3150 sym/22 pcs) 1 img

Week 7 Homework

21.10.2020

Load the libraries library(ggplot2) library(dplyr) ## ## Attaching package: 'dplyr' ## The following objects are masked from 'package:stats': ## ## filter, lag ## The following objects are masked from 'package:base': ## ## intersect, setdiff, setequal, union Set the Working Directory projectoneWD <- "C:/Users/Joeyc/Documents/Sch...

147 sym R (1336 sym/13 pcs) 2 img