I have an ordinal model created using clmm() and I am trying to predict for a logistic regression. The function predict() does not work, so I am attempting predict.clm() but get this error:
Error in predict.clm() : could not find function "predict.clm"
Any help would be appreciated. The package is updated, R and Rstudio are both updated, and the package is loaded to Rstudio. I am new to R and am not sure how I would go about fixing this or otherwise go about predicting variables for my model.
I am wondering if I should go about changing my model to use the function polr() in package MASS as predict() does not work for the function clmm() which is what my model currently uses. Thank you in advance.
ETA: example, an behavior dataset
Proximity <- c(1, 1, 2, 1, 3, 2, 1, 1, 2, 1) #ordinal variable
Treatment <- c("control", "control", "control", "familiar", "familiar", "familiar", "familiar", "unfamiliar", "unfamiliar", "unfamiliar") #categorical
Event <- c("L", "L", "L", "L", "L", "I", "I", "I", "I", "I") #categorical
Temperature <- c(70, 72, 72, 69, 79, 60, 63, 70, 74, 65) #numerical
#I also have nested random effects but have not included them for simplicity
Prox <- data.frame(Proximity, Treatment, Event, Temperature)
pro.1 <- clmm(Proximity ~ Treatment + Event + Temperature)
predict.clm(pro.1, Prox) #this is where I get the error