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]
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
st: Using one dataset to produce regression coefficients that are use to predict values using a second dataset
Date
Fri, 16 Aug 2013 09:26:08 -0400
Hi all,
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.
An obvious method is to simply copy the coefficients after running the first
regression into a formula and then use .gen to calculate the "predicted"
values using the second dataset.
I am assuming that this "two-stage" process is well thought out, and,
therefore, there are ado files someone has created (even Stata Corp) that
will allow me to conduct this process more efficiently (assuming, e.g., I
have the same variable names in both datasets).
I was not able to find any, but, I suspect, I am not searching on the
correct key words etc.
Any advice?
Thanks, as always, in advance, for any help you can offer!
Ben
Ben Hoen
Staff Research Associate
Lawrence Berkeley National Laboratory
Office: 845-758-1896
Cell: 718-812-7589
[email protected]
http://emp.lbl.gov/staff/ben-hoen
Visit our publications at:
http://emp.lbl.gov/reports/re
Sign up for our email list to receive publication notifications at:
https://spreadsheets.google.com/a/lbl.gov/spreadsheet/viewform?formkey=dGlFS
1U1NFlUNzQ1TlBHSzY2VGZuN1E6MQ
*
* 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/