Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: application of post-estimation commands

Subject   st: application of post-estimation commands
Date   Mon, 12 Sep 2011 13:55:00 +1000

* Hi,

* I'm a beginner using Stata 8.1.

* Regarding the following -

sysuse auto, clear

gen wtsq = weight^2

regress mpg weight wtsq

predict mpghat

twoway (scatter mpg weight) (line mpghat weight, sort)

* Let's say I'm happy with the above fitted model.

* In future, how can I predict mpg as a function

* of weight using the same equation from above?

* In other words, I want to save the above

* function and use it in different .dta files.

* Cheers,

* Mike.

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index