Bookmark and Share

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]

Re: st: Using one dataset to produce regression coefficients that are use to predict values using a second dataset


From   Maarten Buis <[email protected]>
To   [email protected]
Subject   Re: st: Using one dataset to produce regression coefficients that are use to predict values using a second dataset
Date   Fri, 16 Aug 2013 15:32:59 +0200

On Fri, Aug 16, 2013 at 3:26 PM, Ben Hoen wrote:
> I have been poking around this morning unsuccessfully to find an elegant way
> to use one dataset to generate coefficients that I will use to predict
> values using a second dataset.

There is no need for anything special or user written: -predict-
(usually, there are exceptions) does not require that you use the same
dataset. So you can just open dataset 1, estimate your model, open
dataset 2, and use -predict-.

Hope this helps,
Maarten

---------------------------------
Maarten L. Buis
WZB
Reichpietschufer 50
10785 Berlin
Germany

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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index