1. Engineering
  2. Computer Science
  3. how to do c...

Question: how to do c...

Question details

1. The data set UN11 in the alr4 package contains several variables, including ppgdp, per capita gross domestic product in US dollars, and fertility, number of children per woman, from the year 2009-2011. The data are for 199 localities, and we will study the regression of ppgdp on fertility (a) Draw the scatterplot of ppgdp against fertility and describe the relationship between these two variables. Is the trend linear? (b) Replace both variables by their natural logarithms and draw another scatterplot. Does the simple linear regression model seem plausible for a summary of this graph? (c) Without using the R function Im(), find the least-squares estimates regressing log(ppgdp) on log(fertility) and add the line in the plot in (b).

How to do (c)?

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution