Question: Using R, please calculate simple returns for AAPL and GOOGL stocks for all months for 2020, 2021 and 2022. Report the month and year for
Using R, please calculate simple returns for AAPL and GOOGL stocks for all months for 2020, 2021 and 2022. Report the month and year for each stock in which they gave maximum simple return. In case of a tie, report earliest month.
Q3. (25 Points Total) For the following questions, use the stock datasets below. # Install and load necessary libraries install.packages ("PerformanceAnalytics", lib="../work/") install.packages ("xts", lib="../work/") install.packages ("lubridate", lib="../work/") install.packages ("tidyverse", lib="../work/") install.packages ("data.table", lib="../work/") library (PerformanceAnalytics, lib.loc="../work/") library (xts, lib.loc="../work/") library (lubridate, lib.loc="../work/") library (tidyverse, lib.loc="../work/") library (data.table, lib.loc="../work/")
Step by Step Solution
3.42 Rating (165 Votes )
There are 3 Steps involved in it
To calculate simple returns for AAPL and GOOGL stock... View full answer
Get step-by-step solutions from verified subject matter experts
