Skip to content

Forward and backward feature selection with adjusted R squared in R

Notifications You must be signed in to change notification settings

hmohebbi/R_FeatureSelection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

R_FeatureSelection

Forward and backward feature selection with adjusted R squared in R

Usage

dataset_path <- "./insurance.csv"
data <- read.csv(dataset_path, header=TRUE, sep=',')
data$children <- as.factor(data$children)

# Backward Selection with Adjusted R Squared:
reg_backw <- backwardSelection_adjRsquared(data, response = "charges", verbose = TRUE)


# Forward Selection with Adjusted R Squared:
reg_forw <- forwardSelection_adjRsquared(data, response = "charges", verbose = TRUE)

About

Forward and backward feature selection with adjusted R squared in R

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages