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")