Load the dataset Swiss from datasets package in R In one single plot, plot the boxplot
Question:
• Load the dataset Swiss from datasets package in R
• In one single plot, plot the boxplot of each of the given variables
• Produce a grid of scatter plots to analyse the correlation (positive or
negative) between all pairs of variables in the dataset
• Aim:
To build a linear regression model that predicts Infant.Mortality on
other variables. Use leaps package
– Use subset selection to select the best subset model with the most
correlated variables with the response. Write the best subset of pre-
dictors (variables) chosen for one to five predictor models
– Determine the best overall model by computing the adjusted R-
squared and CP values. Mention the variables
• Load the dataset Swiss from datasets package in R
• In one single plot, plot the boxplot of each of the given variables
• Produce a grid of scatter plots to analyse the correlation (positive or
negative) between all pairs of variables in the dataset
• Aim:
To build a linear regression model that predicts Infant.Mortality on
other variables. Use leaps package
– Use subset selection to select the best subset model with the most
correlated variables with the response. Write the best subset of pre-
dictors (variables) chosen for one to five predictor models
– Determine the best overall model by computing the adjusted R-
squared and CP values. Mention the variables
Applied Statistics in Business and Economics
ISBN: 978-0073521480
4th edition
Authors: David Doane, Lori Seward