Saturday, October 01, 2016

Stata: Get out-of-sample file predictions

Stata: Get out-of-sample file predictions
Example:
     webuse auto,clear
          regress mpg weight foreign
     est store regxb
     
     preserve
       webuse newautos,clear
       est restore regxb
       predict mpg
       list
     restore

No comments: