I have two variables x and z, both containing 100 observations. I want to compute Ey=exp(0.5+x-2*z)/(1+exp(0.5+x-2*z)), which has 100 rows with each row corresponding to an observation. How could I do this?
I know that for the standard normal cdf, I could do Ey=normal(0.5+x-2*z), where normal() is the standard normal cdf. What is the counterpart command for logit? Thanks!
I know that for the standard normal cdf, I could do Ey=normal(0.5+x-2*z), where normal() is the standard normal cdf. What is the counterpart command for logit? Thanks!
Comment