Publications by Gabrielle Rowe

Quiz 1

21.02.2021

# Load packages library(tidyquant) library(tidyverse) # for count() function # Import S&P500 Stock Index SP500 <- tq_index("SP500") SP500 ## # A tibble: 505 x 8 ## symbol company identifier sedol weight sector shares_held local_currency ## <chr> <chr> <chr> <chr> <dbl> <chr> <dbl> <chr> ## 1 AAPL Appl...

914 sym R (1702 sym/4 pcs)

Quiz1-a

16.02.2021

Q1 What is R? R is the “engine”, the code, computer programming language Q2 What is RStudio? “The interface”, Integrated Developed Environment, place to write the code Q3 What is R Packages? “Apps you can download”, different codes/functions/data sets you download into R Q4 How about Code? summary(cars) ...

306 sym R (58 sym/1 pcs)

Quiz 2

05.03.2021

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

1335 sym R (2950 sym/8 pcs) 2 img

Quiz 3

20.03.2021

# Load packages library(tidyquant) library(tidyverse) Q1 dividends Import dividends of General Motors and Ford since 2010. Dividends <- tq_get(c("GM", "F"), get = "dividends", from = "2010-01-01") Dividends ## # A tibble: 58 x 3 ## symbol date value ## <chr> <date> <dbl> ## 1 GM 201...

922 sym R (5130 sym/15 pcs)

Quiz 5

17.04.2021

# Load packages library(tidyquant) library(tidyverse) # Import stock prices and calculate returns returns_yearly <- c("^DJI", "^GSPC", "^IXIC") %>% tq_get(get = "stock.prices", from = "1990-01-01", to = "2020-11-01") %>% group_by(symbol) %>% tq_transmute(select = adjusted, mutate_fun = ye...

2555 sym R (5233 sym/17 pcs) 1 img

Term Paper

07.05.2021

Finance students in the past have participated in national student competitions. They are a great opportunity to practice and further your knowledge and skills you learned in the finance program at PSU. Because not all of you are finance major, grading will be generous as long as you follow the instructions (e.g., number counts for answers). In a...

6843 sym

Quiz 6

01.05.2021

Q1 Get monthly returns of Tesla, Amazon, and Netflix for the last 5 years. # Load packages library(tidyquant) library(tidyverse) from <- today() - years(5) stock_returns_monthly <- c("TSLA","AMZN", "NFLX") %>% tq_get(get = "stock.prices", from = from) %>% group_by(symbol) %>% tq_transmute(select = adjusted, ...

925 sym R (13165 sym/16 pcs)

Quiz 4

08.05.2021

With the given stock, conduct the Bollinger Bands analysis by answer the questions below. Q1 Calculate 20-day moving averages and 20-day running standard deviation. Save the result under stock and print it. Q2 Calculate the Bollinger Bands. Save the result under stock and print it. Q3 Select variables to build the Bollinger Bands. Save the res...

1647 sym 1 img