Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.

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

From |
Maarten Buis <maartenlbuis@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: Hold-out sample prediction in binary probit |

Date |
Tue, 17 May 2011 13:52:28 +0200 |

On Tue, May 17, 2011 at 1:15 PM, Eleimon Gonis wrote: > I have estimated a binary probit model with firm year observations between 1995-2006 and I would now like to keep 2006 as a hold-out year to validate my model. > I am sure it's easy to exclude 2006 from the sample by following the routine sample specification procedure. However, my question is the following: > Once I estimate the model, is there any way (command-wise) to tell STATA to do the prediction for me rather than do it manually? probit y x if year < 2006 predict pr sum pr if year == 2006 Hope this helps, Maarten On Tue, May 17, 2011 at 1:15 PM, Eleimon Gonis wrote: > Your swift responses will be greatly appreciated. I do not know if this is intentional, but this sounds to me like you are asking for quick responses. Such requests are not appreciated on this list. To quote the Statalist FAQ: "Urgency is your concern only. Pleas of urgency, desperation, and the like are deprecated on Statalist. Your urgency, however compelling, is a private matter and does not translate into urgency for other members of the list. In fact, labeling your question as urgent is more likely to lead to your question being ignored by list members, who know that in most cases urgency arises from disorganization. On Statalist, the principle of charity is that you answer questions because you are able and willing to say something about the question, not because you have pity on the questioner." An alternative interpretation would be that you noticed that people often get quick responses and you wanted to express appreciation for that as well. Since the Statalist FAQ also asks us to "assume goodwill even if it is not evident", I'll assume that the latter is the case. The easiest way to avoid this problem in the future is to thank after you have received advise rather than in advance. This is perfectly acceptable on this list. -------------------------- Maarten L. Buis Institut fuer Soziologie Universitaet Tuebingen Wilhelmstrasse 36 72074 Tuebingen Germany http://www.maartenbuis.nl -------------------------- * * 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/

**Follow-Ups**:**RE: st: Hold-out sample prediction in binary probit***From:*Eleimon Gonis <Eleimon2.Gonis@uwe.ac.uk>

**References**:**st: Hold-out sample prediction in binary probit***From:*Eleimon Gonis <Eleimon2.Gonis@uwe.ac.uk>

- Prev by Date:
**[no subject]** - Next by Date:
**st: -dlist- updated on SSC** - Previous by thread:
**st: Hold-out sample prediction in binary probit** - Next by thread:
**RE: st: Hold-out sample prediction in binary probit** - Index(es):