Publications by Daniel Lee

Quiz4_makeup

07.05.2020

Make sure to include the unit of the values whenever appropriate. Q1 Build a regression model to predict wages using education. Hint: The variables are available in the CPS85 data set from the mosaicData package. data(gapminder, package ="gapminder") houses_lm <- lm(lifeExp ~ gdpPercap, data = gapminder) summary(houses_lm) ## ##...

1761 sym R (1581 sym/2 pcs)

Term Project

07.05.2020

This is an extension of the tidytuesday assignment you have already done. Complete the questions below, using the screencast you chose for the tidytuesday assigment. Import data # devtools::install_github("thebioengineer/tidytuesdayR") library(tidytuesdayR) library(tidyverse) Description of the data and definition of variables The data is the w...

1082 sym R (539 sym/2 pcs) 1 img

Tidytuesday

27.04.2020

Choose one of David Robinson’s tidytuesday screencasts, watch the video, and summarise. https://www.youtube.com/channel/UCeiiqmVK07qhY-wvg3IZiZQ Instructions You must follow the instructions below to get credits for this assignment. Read the document posted in Moodle before answering the following questions. Write in your own words. Multiple ...

2296 sym

Quiz 4

18.04.2020

Make sure to include the unit of the values whenever appropriate. Q1 Build a regression model to predict life expectancy using gdp per capita. Hint: The variables are available in the gapminder data set from the gapminder package. Note that the data set and package both have the same name, gapminder. library(tidyverse) options(scipen=999) data(...

2307 sym R (392 sym/2 pcs)

Quiz 3B

24.03.2020

In this exercise you will learn to visualize the pairwise relationships between a set of quantitative variables. To this end, you will make your own note of 8.5 Mosaic plots from Data Visualization with R. Mosaic charts can display the relationship between categorical variables using: rectangles whose areas represent the proportion of cases for ...

2262 sym R (603 sym/5 pcs) 2 img

Quiz 3-a

05.03.2020

In this exercise you will learn to visualize the pairwise relationships between a set of quantitative variables. To this end, you will make your own note of 8.1 Correlation plots from Data Visualization with R. # import data data(SaratogaHouses, package="mosaicData") # select numeric variables df <- dplyr::select_if(SaratogaHouses, is.numeric) ...

1550 sym R (708 sym/2 pcs) 2 img

Introduction to ggplot2 Quiz2B

20.02.2020

In this exercise you will learn to plot data using the ggplot2 package. To answer the questions below, use Chapter 4.3 Categorical vs. Quantitative Data Visualization with R. # Load packages library(tidyquant) library(tidyverse) # Import stock prices stock_prices <- tq_get(c("AAPL", "MSFT"), get = "stock.prices", from = "2020-01-01") stock_pri...

1134 sym R (2681 sym/10 pcs) 6 img

Quiz 2-a

18.02.2020

In this exercise you will learn to clean data using the dplyr package. To this end, you will follow through the codes in one of our e-texts, Data Visualization with R. The given example code below is from Chapter 1.2 Cleaning data. ## # A tibble: 87 x 13 ## name height mass hair_color skin_color eye_color birth_year gender ## <chr> <int>...

875 sym R (2655 sym/6 pcs)

Quiz 2a

13.02.2020

In this exercise you will learn to clean data using the dplyr package. To this end, you will follow through the codes in one of our e-texts, Data Visualization with R. The given example code below is from Chapter 1.2 Cleaning data. ## # A tibble: 87 x 13 ## name height mass hair_color skin_color eye_color birth_year gender ## <chr> <int>...

751 sym R (2291 sym/4 pcs)

Quiz 1

11.02.2020

Use the given code below to answer the questions. ## Load package library(tidyverse) # for cleaning, plotting, etc ## ── Attaching packages ───────────────────────────────────────────── tidyverse 1.3.0 ── ## ✓ ggplot2 3.2.1 ✓ purrr 0.3.3 ##...

2041 sym R (5314 sym/32 pcs) 2 img