Publications by Joey Campbell

ISLR Chapter 5 Problem 5

31.03.2020

suppressPackageStartupMessages(library('ISLR')) package 㤼㸱ISLR㤼㸲 was built under R version 3.6.3 summary(Default) default student balance income No :9667 No :7056 Min. : 0.0 Min. : 772 Yes: 333 Yes:2944 1st Qu.: 481.7 1st Qu.:21340 Median : 823.6 Median :34553 ...

6957 sym R (2439 sym/16 pcs)

estimating model accuracy on iris

20.03.2020

Estimating Model Accuracy We have considered model accuracy before in the configuration of test options in a test harness. You can read more in the post: How To Choose The Right Test Options When Evaluating Machine Learning Algorithms. In this post you can going to discover 5 different methods that you can use to estimate model accuracy. They are...

11704 sym R (6191 sym/14 pcs)

scales76_Demo

19.03.2020

suppressPackageStartupMessages(library("tidyverse")) package 㤼㸱tidyverse㤼㸲 was built under R version 3.6.3 suppressPackageStartupMessages(library("modelr")) package 㤼㸱modelr㤼㸲 was built under R version 3.6.3 suppressPackageStartupMessages(library("lubridate")) 1. Why doesn’t the following code override the default scale? df <- ...

5811 sym R (2054 sym/12 pcs) 7 img

annotations75_demo

19.03.2020

suppressPackageStartupMessages(library("tidyverse")) package 㤼㸱tidyverse㤼㸲 was built under R version 3.6.3 suppressPackageStartupMessages(library("modelr")) package 㤼㸱modelr㤼㸲 was built under R version 3.6.3 suppressPackageStartupMessages(library("lubridate")) 1. Use geom_text() with infinite positions to place text at the four c...

6811 sym R (1760 sym/10 pcs) 5 img

code_chunks73_demo

19.03.2020

4. Set up a network of chunks where d depends on c and b, and both b and c depend on a. Have each chunk print lubridate::now(), set cache = TRUE, then verify your understanding of caching. --- title: "Exercise 24.4.7.4" author: "Joey Campbell" date: "03/19/2019" output: html_document --- `{r setup, include=FALSE} knitr::opts_chunk$set(ech...

1805 sym R (584 sym/1 pcs)

rmd_basics71_demo

18.03.2020

Create a new notebook using File > New File > R Notebook. Read the instructions. Practice running the chunks. Verify that you can modify the code, re-run it, and see modified output. 2. Create a new R Markdown document with File > New File > R Markdown …. Knit it by clicking the appropriate button. Knit it by using the appropriate keyboard sho...

669554 sym R (695 sym/7 pcs) 3 img

txt_fmt72_demo

18.03.2020

Exercise 27.3.1 Practice what you’ve learned by creating a brief CV. The title should be your name, and you should include headings for (at least) education or employment. Each of the sections should include a bulleted list of jobs/degrees. Highlight the year in bold. A minimal example is the following CV. --- title: "Joseph Campbell" --- #...

4708 sym R (1199 sym/2 pcs)

gapminder68_demo

18.03.2020

suppressPackageStartupMessages(library("modelr")) package 㤼㸱modelr㤼㸲 was built under R version 3.6.3 suppressPackageStartupMessages(library("tidyverse")) package 㤼㸱tidyverse㤼㸲 was built under R version 3.6.3 suppressPackageStartupMessages(library("gapminder")) package 㤼㸱gapminder㤼㸲 was built under R version 3.6.3 1. A lin...

4254 sym R (1780 sym/14 pcs) 4 img

diamonds67_demo

17.03.2020

suppressPackageStartupMessages(library("tidyverse")) suppressPackageStartupMessages(library("modelr")) suppressPackageStartupMessages(library("lubridate")) suppressPackageStartupMessages(library("broom")) suppressPackageStartupMessages(library("nycflights13")) The splines package is needed for the ns() function used in one of the solutions. s...

14638 sym R (1830 sym/17 pcs) 2 img

vizmod65_demo

16.03.2020

suppressPackageStartupMessages(library("tidyverse")) package 㤼㸱tidyverse㤼㸲 was built under R version 3.6.3 suppressPackageStartupMessages(library("modelr")) package 㤼㸱modelr㤼㸲 was built under R version 3.6.3 1. Instead of using lm() to fit a straight line, you can use loess() to fit a smooth curve. Repeat the process of model fit...

9274 sym R (1424 sym/14 pcs) 4 img