May 2019
Beginner to intermediate
266 pages
5h 57m
English
In this chapter, we will focus on a macroeconomic dataset that is found in a built-in library called dataset in R. It provides a well-known example of a highly collinear regression.
The data frame includes seven economical variables, observed yearly from 1947 to 1962 (n=16):
> library(pls)> data(longley)
As discussed in previous chapters, we will carry out the following steps to read the data structure:
> longleyGNP.deflator GNP Unemployed Armed.Forces Population Year Employed1947 83.0 234.289 235.6 159.0 107.608 1947 60.3231948 88.5 259.426 232.5 145.6 108.632 1948 61.1221949 88.2 258.054 368.2 161.6 109.773 1949 60.171 ...Read now
Unlock full access