Dear All,

suppose I have the following:

Code:
logit Y X1 X2 X3 i.COUNTRY i.YEAR, cluster(S003)
After the estimation I need to calculate a value using the following:

Code:
predictnl abc=1/(1+exp(-(_b[X1]*X1+_b[i.COUNTRY]*I.COUNTRY+_b[i.YEAR]*i.YEAR)))
So i need to exclude some of the regressors. I have many countries and many years, so I tried to use factor variables, hoping that predictnl could recognize it. Apparently, this is not the case. So is there any way to use factor variable within predictnl? I need to calculate several of those values above and it is quite annoying to write down all the coefficients/variables associated to the country and year dummies. On the side, using factor notation, I need to check every time which country and year has been dropped to avoid collinearity.

Thanks in advance for the help.