Hey, one easy way to decide features is to use a correlation matrix. The stronger the correlation coefficient r is, the more of a linear relationship exists.
The code goes like this -
install.packages('corrplot')
library(corrplot)
mcor <- cor(crime) # if crime is your dataframe
corrplot(mcor)
That's one easy way to start out. Perhaps I'll write a post on feature engineering.
The code goes like this -
install.packages('corrplot') library(corrplot)
mcor <- cor(crime) # if crime is your dataframe corrplot(mcor)
That's one easy way to start out. Perhaps I'll write a post on feature engineering.