Publications by Ryan Masingill

Term Project

08.05.2020

Q1 What is the title of the finance student competition you may consider competing? Hint: You may Google search something like “student competitions in finance”. CFI Financial Modeling Case Competition Q2 Describe the eligibility requirements, if any (e.g., undergraduate college student). This is open to undergraduate college students, gradua...

4518 sym

Quiz1_Makeup

08.05.2020

Use the given code below to answer the questions. ## Load package library(tidyverse) # for cleaning, plotting, etc library(tidyquant) # for financial analysis ## Import data stocks <- tq_get("AAPL", get = "stock.prices", from = "2016-01-01") stocks ## Visualize stocks %>% ggplot(aes(x = date, y = close)) + geom_line() Q1 Import Microsoft s...

2655 sym R (1436 sym/5 pcs) 2 img

Quiz 6

01.05.2020

This note came from Matt Dancho’s webpage. Factor models are used in many financial appplications, suhc as: identifying the determinants of a security’s return cost of capital (rate of return required by an investor to hold the share) calculations Capital Asset Pricing Model (CAPM) is the most popular factor model. Although CAPM does not pe...

2847 sym R (5720 sym/10 pcs)

Quiz 5

23.04.2020

Q1 Import stock prices of NASDAQ Compsite Index, Microsoft and Walmart for the last 30 years. Hint: Add group_by(symbol) at the end of the code so that calculations below will be done per stock. ## Warning in system("timedatectl", intern = TRUE): running command 'timedatectl' ## had status 1 ## # A tibble: 22,677 x 8 ## # Groups: symbol [3] ## ...

3369 sym R (4009 sym/10 pcs)

Quiz 4

15.04.2020

Q1 Import Tesla for the last ten months. Hint: Revise the given code below. library(tidyquant) library(tidyverse) # Import data from = today() - months(10) stock <- tq_get("TSLA", get = "stock.prices", from = from) stock ## # A tibble: 209 x 8 ## symbol date open high low close volume adjusted ## <chr> <date> <dbl> <dbl> <...

2142 sym R (5044 sym/7 pcs) 2 img

Quiz 3

26.03.2020

# Load packages library(tidyquant) ## Loading required package: lubridate ## ## Attaching package: 'lubridate' ## The following object is masked from 'package:base': ## ## date ## Loading required package: PerformanceAnalytics ## Loading required package: xts ## Loading required package: zoo ## ## Attaching package: 'zoo' ## The following...

1379 sym R (5043 sym/34 pcs)

Quiz3-b

19.03.2020

stock.prices economic.data Merge Plot Q1. stock.prices Import S&P500 since 1999. Hint: Google tidyquant::tq_get() to find example codes. Q2. Prepare the imported stock prices for merge. Hint: Calculate yearly returns; create a new variable, year; and drop date. Q3 economic.data Import real U.S. GDP growth since 2000. Hint: Find the symbol in ...

1222 sym 2 img

Importing Financial Data

05.03.2020

Q1. dividends Import dividends of Apple and Microsoft since 2010. ## Warning: x = 'WMT', get = 'dividends': Error in vapply(parse(text = fr[, 2]), eval, numeric(1)): values must be length 1, ## but FUN(X[[1]]) result is length 2 ## Removing WMT. ## Warning: x = 'TGT', get = 'dividends': Error in vapply(parse(text = fr[, 2]), eval, numeric(1)): ...

1183 sym R (2125 sym/7 pcs) 3 img

Quiz 2

27.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) ## Loading required package: lubridate ## ## Attaching package: 'lubridate' ## The following object is masked from 'package:base': ## #...

2109 sym R (4559 sym/30 pcs) 4 img

Quiz 1

11.02.2020

Use the given code below to answer the questions. ## Load package library(tidyverse) # for cleaning, plotting, etc library(tidyquant) # for financial analysis ## Import data stocks <- tq_get("AAPL", get = "stock.prices", from = "2016-01-01") stocks ## Visualize stocks %>% ggplot(aes(x = date, y = adjusted)) + geom_line() ## # A tibble: 1,0...

2270 sym R (3579 sym/7 pcs) 2 img