Question
1. Using the WDI package in R (RStudio), look for the following term: lending interest rate. It is associated with variable name: FR.INR.LEND. Use R
1. Using the WDI package in R (RStudio), look for the following term: lending interest rate. It is associated with variable name: FR.INR.LEND. Use R to find the median lending interest rate for the United States from 1984 to 2017. Then, fill out the blank.
The median lending interest rate for the US from 1984 to 2017 is about _______ percent. (Enter your answer with two decimal points.)
2. Using the WDI package in R (RStudio), look for the following term: stock market return. It is associated with variable name: GFDD.OM.02. Use R to find the median stock market return for the United States from 1984 to 2017. Then fill out the blank.
The median stock market return for the US from 1984 to 2017 is at about _______ percent. (Enter your answer with two decimal points).
3. Using the Tidyverse package in R (or using even basic R commands), compute a measure for the stock market premium for United States from 1984 to 2017. This premium measure is defined in the following way:
- Premium(t)=stock market return-lending interest rate(t)(Where t varies between 1984 and 2017)
The median of this measure for stock market premium in the US from 1984 to 2017 is about __________ percent. (Enter your answer with two decimal points.)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started