Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

R: st: re: predicting after probit (was: MIME-Version: 1.0)


From   "[email protected]" <[email protected]>
To   <[email protected]>
Subject   R: st: re: predicting after probit (was: MIME-Version: 1.0)
Date   Tue, 2 Dec 2008 10:06:02 +0100 (CET)

It is possibile to use the command adjust with the option by(country) 
to obtain the same result?

Thank you very much
Gabriele Ruiu

----Messaggio originale----
Da: [email protected]
Data: 27/11/2008 13.47
A: <[email protected]>
Ogg: st: re: predicting after probit (was: MIME-Version: 1.0)

< >	
Gabriele wrote

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.

webuse grunfeld,clear
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


Kit Baum, Boston College Economics and DIW Berlin
http://ideas.repec.org/e/pba1.html
An Introduction to Modern Econometrics Using Stata:
http://www.stata-press.com/books/imeus.html


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/





_________________________________________________________________Regali per tutte le tasche: Per chi? Tipo di regalo? Prezzo?Scopri più di 1.500 OFFERTE selezionate per te con il TROVAREGALO!http://shopping.tiscali.it/c-100299723-regali-di-natale.html

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index