Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are required to use R for this exercise. In particular, you must use the following libraries: tidyverse and WDI , both of which are
- You are required to use R for this exercise. In particular, you must use the following libraries: tidyverse and WDI, both of which are introduced and discussed as part of the pre-recorded lectures.
- Put together a data frame using the WDI function, which is part of the WDI library. Call your data frame: df. For this data frame, the country should be set as the US. And the indicators should include:
- FP.CPI.TOTL.ZG (Inflation, consumer prices (annual %))
- NY.GDP.MKTP.KD.ZG (GDP growth (annual %))
- FM.LBL.BMNY.ZG (Broad money growth (annual %))
- NE.GDI.FTOT.KD.ZG (Gross fixed capital formation (annual % growth))
- Rename variable FP.CPI.TOTL.ZG as: inflation. Copy and paste the code below.
The starting year must be set at 1973, and the end year must be set at 2019.
Copy and paste below the line of code by which you put together the above data frame .
- Rename variable NY.GDP.MKTP.KD.ZG as: gdp_growth. Copy and paste the code below.
- Rename variable FM.LBL.BMNY.ZG as: money_growth. Copy and paste the code below.
- Rename variable NE.GDI.FTOT.KD.ZG as: inv_growth. Copy and paste the code below.
- Estimate the parameters of the population regression function below:
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