R: st: re: predicting after probit (was: MIME-Version: 1.0)
It is possibile to use the command adjust with the option by(country)
to obtain the same result?
Thank you very much
Da: [hidden email] Data: 27/11/2008 13.47
A: <[hidden email]>
Ogg: st: re: predicting after probit (was: MIME-Version: 1.0)
I do a probit regression in a cross section of individuals that are
from many countries (I have abouth one thousand of observations for
each country). For each individual I have a variable where it's
indicated his country. I desire to obtain a predicted probability
for the dependent variable not at individual's level but at county
level. How can i do?
In the enclosed, imagine that the individual observations for each
company belong to individuals. Your 'country' is my 'company', the
group with which the 'individual' is affiliated.
bys company: egen invmu = mean(invest)
bys company: g hi = invest > invmu
probit hi mvalue kstock
predict double hihat, pr
bys company: egen prcomp = mean(hihat)
list invest hi hihat prcomp if company < 3