I am working on a data set of employed and unemployed people. After estimation of parameters for (log)wages I am trying to predict values of (log)wages for unemployed people that would correspond with results that I have (in data set values for unemployed are N/A).
After using function predict I still get predictions only for employed people. Does anyone know how to get the full column of "predML"? Thank you in advance!!
ml_restricted <- selection(employed ~ schooling + age + agesq + married, logwage ~ schooling + age + agesq, data)
summary(ml_restricted)
# find predicted values
predML <- predict(ml_restricted)
data <- cbind(data, predML)
employed2 <- ifelse(data$employed == 1, "employed", "unemployed")
data <- cbind(data, employed2)