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   "Ben Hoen" <[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 09:37:04 -0400

Ah hah!  An elegant solution indeed!

Thanks Maarten,

Ben

Ben Hoen
LBNL
Office: 845-758-1896
Cell: 718-812-7589


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Maarten Buis
Sent: Friday, August 16, 2013 9:33 AM
To: [email protected]
Subject: Re: st: Using one dataset to produce regression coefficients that
are use to predict values using a second dataset

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/

*
*   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