The data set mantel in the alr4 package has a response Y andthree predictors x1, x2 and x3.
(a) Apply the forward selection and backward eliminationalgorithms, using AIC as a criterion function. Report yourfindings.
(b) Use regsubsets() function in R to determine the best model.Which appear to be the important predictors? What’s the finalmodel? Explain your reasoning.