2.16 United Nations data (Data file: UN11) Refer to the UN data in Problem 1.1. 2.16.1 Use a software package to compute
Posted: Sat Feb 26, 2022 11:25 am
library(alr4)data=UN11
data=UN11
Using R code. The way to have data is attached, don't ask for data again and again.
2.16 United Nations data (Data file: UN11) Refer to the UN data in Problem 1.1. 2.16.1 Use a software package to compute the simple linear regression model corresponding to the graph in Problem 1.1.3. 2.16.2 Draw a graph of log(fertility) versus log(ppgdp), and add the fitted line to the graph. 2.16.3 Test the hypothesis that the slope is 0 versus the alternative that it is negative (a one-sided test). Give the significance level of the test and a sentence that summarizes the result. 2.16.4 Give the value of the coefficient of determination, and explain its meaning. 2.16.5 For a locality not in the data with ppgdp 1000, obtain a point prediction and a 95% prediction interval for log(fertility). If the interval (a, b) is a 95% prediction interval for log(fertility), then a 95% prediction interval for fertility is given by (exp(a), exp(b)). Use this result to get a 95% prediction interval for fertility