[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
"Michael Blasnik" <michael.blasnik@verizon.net> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
Re: st: -predict- in a system of equations |

Date |
Sat, 22 May 2004 12:22:47 -0400 |

How about using -estimates- to store and retrieve the results you want? I think that should work across datasets and also provide you with the full range of predict options. Michael Blasnik michael.blasnik@verizon.net ----- Original Message ----- From: "R.E. De Hoyos" <redeho2@hotmail.com> To: <statalist@hsphsun2.harvard.edu> Sent: Saturday, May 22, 2004 11:06 AM Subject: Re: st: -predict- in a system of equations > Michael, > > Thanks for your answer. > > -predict- wont work because several equations are being estimated. Suppose I > estimate -heckman- using data1.dta, then a vector e(b) is created in > which -predict- is based on. Once a second equation is estimated, > e.g. -mlogit- a new vector is created, let's say to e(b') and the old one is > being lost. When I change to data2.dta I want to be able to predict (or > score) using both e(b) and e(b'), therefore I needed a way to save these > vectors, which your suggestion is doing very well. > > It would be quite useful to have an option to save all the -predict- > properties (at least temporary) to use them in an alternative dataset. > With -matrix score- I can only form linear combinations of the previously > saved vectors e(b)s and the new Xs, while I might be more interested in the > fitted probabilities (as in the case of limited dependant variables eq.) > > Thanks again, > > Rafa > * * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**References**:**Re: st: Top ten tricks***From:*Bill Rising <wrrisi01@athena.louisville.edu>

**st: -predict- in a system of equations***From:*"R.E. De Hoyos" <redeho2@hotmail.com>

**Re: st: -predict- in a system of equations***From:*Ada Ma <pec187@abdn.ac.uk>

**Re: st: -predict- in a system of equations***From:*"R.E. De Hoyos" <redeho2@hotmail.com>

**Re: st: -predict- in a system of equations***From:*"Michael Blasnik" <michael.blasnik@verizon.net>

**Re: st: -predict- in a system of equations***From:*"R.E. De Hoyos" <redeho2@hotmail.com>

- Prev by Date:
**st: gamfit doesn't work** - Next by Date:
**Re: st: -predict- in a system of equations** - Previous by thread:
**Re: st: -predict- in a system of equations** - Next by thread:
**Re: st: -predict- in a system of equations** - Index(es):

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