0

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.

Does anyone know an alternative function for this ?

Here is a screenshot of the error:

enter image description here

Ben Bolker
  • 211,554
  • 25
  • 370
  • 453
student_R123
  • 962
  • 11
  • 30
  • Can you edit your question to include the results of `find("step")` and `packageVersion("lmerTest")` please? (With version 3.0.1 of `lmerTest` loaded, I couldn't reproduce the error ...() – Ben Bolker May 24 '18 at 21:09
  • Thank you for your answer. It was masked by lemerTest package. – student_R123 May 24 '18 at 21:46

1 Answers1

1

Apparently stats::step (I assume it is the function you want to use) is masked by another package (probably lmerTest).

Did you try with the package name?

stats::step(regmodel, direction = "forward")
nael_kl
  • 89
  • 3