Questions tagged [variable-selection]

35 questions
0
votes
2 answers

R: remove/drop multi-collinear variables, based on a output of multi-collinearity test output

I have a dataset of 32 variables and 48 observations (observations would increase, as we are in the phase of data collection thru subscriptions). Since the dataset has high multicollinearity, I introduced Farrar – Glauber Test. The individual…
Arun
  • 19
  • 8
0
votes
1 answer

Automated variable selection method

I have a disease dataset, for this dataset. disease_rate is the dependant variable, and the rest independents. data <- read.csv("H:/uni/MS_DS/disease.csv") data > data radius texture perimeter area smoothness desease_rate 1 …
Prad
  • 339
  • 1
  • 10
0
votes
1 answer

Step function for variable selection is not working

I am trying to do a variable selection using the step() function in R. But it keep getting an error. Then I found out that now there is no basic step() function like previously. There is a step function in the lmerTest package for mixed models.…
student_R123
  • 962
  • 11
  • 30
0
votes
0 answers

Function for variable selection

I want define a function for variable selection Var_Selection = function(data, target){ target = as.character(target) form = paste(target, '~ ') vect = c() valid.names <- names(data)[names(data) != "target"] myAIC = data.frame(var =…
Naï
  • 53
  • 6
-1
votes
1 answer

Stepwise AIC using forward selection in R

I am trying to do a forward variable selection using stepwise AIC in R but I don't think that I am getting the desired results. Specifically, the function should start with no variables and keep adding variables and get their AIC values. However,…
yash471994
  • 63
  • 7
1 2
3