Question
PLEASE NOTE: I only need the rstudio code and not any interpretations. This includes the code, tables and plots. Modelling what determines the share of
PLEASE NOTE: I only need the rstudio code and not any interpretations. This includes the code, tables and plots.
Modelling what determines the share of the population who can't afford healthy food using rstudio
a) Please model the share of the population whose food budget is below the cost of a healthy diet (who cannot afford a healthy diet) using R:
b) Include a minimum of 5 (five) explanatory variables in the regression equation and provide a scatter plot of your dependent and independent variables (5 scatter plots). Use OLS standard errors
(Provide a table with coefficients including p-values and scatter plots)
c) Test for heteroscedasticity in R using the Breusch-Pagan test. (Provide a table of results)
d) Present results from a) using HAC robust errors
e) Add regional dummies to the regression from a) and test the joint significance (Provide new regression table)
Here is a link to where the data can be downloaded (https://drive.google.com/file/d/1TtMK5bPQWHv6W0Ht_9RnX42JwhUvX7J4/view?usp=sharing)
Please include the code in your response.
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