Publications by Daniel Lee

Mock Quiz 1

04.02.2020

Use the given code below to answer the questions. Q1 Get Walmart stock prices, instead of Apple. Hint: Insert a new code chunk below and type in the code, using the tq_get() function above. Replace the ticker symbol for Walmart. You may find the ticker symbol for Microsoft from Yahoo Finance. ## # A tibble: 1,028 x 7 ## date open high...

1570 sym R (760 sym/1 pcs) 1 img

Quiz 1-B

04.02.2020

Use the given code below to answer the questions. ## # A tibble: 1,028 x 7 ## date open high low close volume adjusted ## <date> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> ## 1 2016-01-04 103. 105. 102 105. 67649400 98.4 ## 2 2016-01-05 106. 106. 102. 103. 55791000 96.0 ## 3 2016-01-06 101. 102. 99.9 10...

1408 sym R (2120 sym/3 pcs) 2 img

My First Publication

23.01.2020

Q1 What is R? R is like an engine Q2 What is RStudio? RStudio is a web based platform where we will post our work Q3 What is R packages? R Packages is similar to the applications on your phone Hint: Type your answer in bold. Note: For help with RMarkdown syntax, go Help > Cheatsheets > R Markdown Reference Guide. Q4 Add a code chunk. ...

349 sym

Bivariate Graphs

25.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. Q1 Plot the distribution of daily returns by stock using kernel density plots. Hint: See the code in 4.3.2 Grouped kernel density plots. Q2 Plot the distribution of dail...

1669 sym 5 img

Quiz 2

03.03.2020

# Load packages library(tidyquant) library(tidyverse) # Import stock prices stock_prices <- tq_get(c("WMT", "TGT", "AMZN"), get = "stock.prices", from = "2020-01-01") # Calculate daily returns stock_returns <- stock_prices %>% group_by(symbol) %>% tq_mutate(select = adjusted, mutate_fun = periodReturn, period = "daily") stock_retur...

2136 sym R (2870 sym/10 pcs) 4 img

Quiz3

28.03.2020

The data set is from a case-control study of smoking and Alzheimer’s disease. The data set has two variables of main interest: smoking a factor with four levels “None”, “<10”, “10-20”, and “>20” (cigarettes per day) disease a factor with three levels “Alzheimer”, “Other dementias”, and “Other diagnoses”. ## ── ...

2378 sym R (473 sym/4 pcs) 3 img

Reading on Regression

11.04.2020

Instructions You must follow the instructions below to get credits for this assignment. Read the document (example of regression analysis) posted in Moodle before answering the following questions. Write in your own words. Multiple identical answers will get zero. Elaborate your answer. One or two sentence answers won’t get credit. Make sure t...

4250 sym

Quiz 5

07.05.2020

Replicate a case study of marketing analytics: https://www.linkedin.com/learning/the-data-science-of-marketing/cluster-analysis-with-r?u=2232593 Q1 Import data myClusterData <- read.csv("/cloud/project/cluster-r.csv") myClusterData ## Email Behavior.3 ## 1 nisl@adipiscin...

599 sym R (53178 sym/6 pcs) 1 img