“I got an error in my code but i didn’t think my code or data was relevant”?
I haven’t done t.test stuff in awhile but sounds like it wants it as a factor / is more than 0/1.
yeah it's pretty stupid i admit, I just thought that the problem was contained with what I'd written.
I'm just saying what i thought, not what's right , though :')
No worries though
Levene’s test is about testing equality of variances for a given variable between groups split by a categorical variable (i.e. gender, geography). The variable by which you split is the exploratory variable. It seems that you are using a numeric one. You have two options - change your variable into a categorical one (if it really represents buckets) or use techniques for exploring relationships between quantitative variables.
that makes sense, thanks!