I want to run a robust ANCOVA from the WRS2 package (https://rdrr.io/cran/WRS2/man/ancova.html). 'ratio' is my DV, 'bait' the predictor and 'session' the covariate.
I use the following function:
ancova_model = ancova(ratio ~ bait + session, data = training_data)
And here is my dataset:
However, I get the following error message:
Error in if (nuhat < 2) stop("The degrees of freedom must be greater than or equal to 2") : missing value where TRUE/FALSE needed In addition: Warning messages: 1: In min(sub[vecn >= 12]) : no non-missing arguments to min; returning Inf 2: In max(sub[vecn >= 12]) : no non-missing arguments to max; returning -Inf
Any ideas what I'm doing wrong?