I have a training data frame with 1335006 observations and a validation data frame with 1317308 observations.
I made a logit regression in the training data frame and when I executed this code
Validationdataframe$plogit <- predict(logit, type="response")
I obtained the following error message:
Error: Assigned data `predict(logit, type = "response")` must be compatible with existing data.
Can you help me finding a solution?