For this project, we would like to use related factors to predict life expectancy. We extracted World Development Indicators of twenty four countries from World Bank Databank. World Development Indicators (WDI) is the primary World Bank collection of development indicators, compiled from officially recognized international sources.
The response variable is Life Expectancy at birth (Series Code SP.DYN.LE00.IN), and the predictorsare the rest 41 variables, including GDP growth, Inflation, CO2 emissions, Physicians per 1,000 people, andHospital beds per 1,000 people, etc.
This dataset has 480 observations (n=480) and 42 variables (p=42). The following code has been implemented to impute missing data-points with their mean.
We used the following code to standardize the numerical predictors: