Statalist The Stata Listserver


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

st: RE: Storing test results


From   "Maarten Buis" <M.Buis@fsw.vu.nl>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Storing test results
Date   Thu, 4 May 2006 17:15:36 +0200

----- Gernot Wagner wrote:
> I would like to store test results to work with them later. Estimation
> commands store their output automatically. That does not seem to be
> true for test commands, including test and testnl. 

You can get the results stored by estimation commands with -ereturn list-
and you can get results stored by other commands by -return list-. -test-
and -testnl- use the results stored by the last estimation command. If 
-test- and -testnl- would overwrite those stored results you would have 
to reissue the estimation command after each -test- command if you wanted
to perform more than one test.

HTH,
Maarten

*--------------begin example--------------
sysuse auto, clear
reg price foreign mpg
testnl _b[mpg]/_b[foreign] = _b[_cons]
return list
*--------------end example---------------

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z214 

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------



*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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