[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: R and Stata efficiency

From   Kit Baum <>
Subject   st: Re: R and Stata efficiency
Date   Wed, 11 Jul 2007 08:42:12 -0400

Phil is quite correct, but the current version of Stata (10.0) contains an -estimates save- command that allows you to retain and recall estimated results in this or later sessions of Stata.

Kit Baum, Boston College Economics and DIW Berlin
An Introduction to Modern Econometrics Using Stata:

On Jul 11, 2007, at 2:33 AM, Phil wrote:

For example, a common
idiom in R is to fit a model like this:

results <- lm(y ~ x)

This command places the results into an object called
"results" (technically of class "lm"), which one can then use later
on.  In Stata, this would look like:

reg y x
est store results

which would store the estimation results under the name "results" for
further use.  Of course in R you can save the object "results" in a
file, whereas in Stata (at least as of version 9) you cannot save the
set of results in a file (though see Michael Blasnik's -estsave- and
Ben Jann's -estwrite- and -estread- wrappers for a workaround).
*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index