Make a prediction after using pglm function

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:

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

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.