I am stuck with an error when I start subset selection

Error given is below:

Error in quantile.default(resid) : factors are not allowed
Inoltre: Warning messages:
1: In model.response(mf, "numeric") :
using type = "numeric" with a factor response will be ignored
2: In Ops.factor(y, z$residuals) : ‘-’ not meaningful for factors
3: In Ops.factor(r, 2) : ‘^’ not meaningful for factors

I think your issue relates to the data types of your data.
Numerics and Factors etc.
Consider installing the skimr package and using skim() function on your dataset, as a nice way to see what the variables are.
You might need to transform them to use them in a given function, or realise they are not fit for your purpose.

Hope it helps.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.