How to perform a backward elimination approach using R to increase the accuracy of a linear regression model in R? Explain with an example
For explaining backward elimination approach, let us explain with a model. First we import the dataset # Importing the dataset dataset = read.csv('50_Startups.csv') We encode categorical data # Encoding categorical data dataset$State = factor(dataset$State,levels = c('New York', 'California', 'Florida'), labels = c(1,…
Answered Dec 21, 2019 · 1.6K Views Read answer →