Statalist The Stata Listserver

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

st: RE: Storing test results

From   "Maarten Buis" <>
To   <>
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.


*--------------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

*   For searches and help try:

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