I am trying to predict in lm model, but when a use predict it does not work
THIS IS MY CODE
modelo1=lm(Y~X11 + X3 + X6 + X5 + X2, data=Datos1)
summary(modelo1)
newdata1=data.frame(X2=150, X3="Rutas de la universidad", X5=200, X6="Sin ingresos", X11=0)
predict(modelo1,
newdata=newdata1,
interval="confidence",
level=0.95)
Error in model.frame.default(Terms, newdata, na.action = na.action, xlev = object$xlevels) :
factor X6 has new level Sin ingresos