Make a prediction after using pglm function

Hi!
I've wrote this code to obtain a logistic regression model with panel data.

mod1<-pglm(Yclass ~ Processo + eventi + precedente, data=res$train,
family = binomial(link= logit), model="random", index=c("t", "Matricola"))

Now, I'd like make a prediction using the test set, but I've noticed that the generic function predict() doesn't work. How can I solve this problem? Which is the right code?

predmod1 <- predict(mod1, newdata= res$test, type = "response")

  1. Please provide reproducible examples!!!!!!
  1. Have a read on predicting:

https://www.statology.org/r-glm-predict/

Thanks, but I don't use a simple glm but the function pglm, for panel data...