Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

re: st: FW: saving regression output after "PV" command


From   Kit Baum <kitbaum@me.com>
To   statalist@hsphsun2.harvard.edu
Subject   re: st: FW: saving regression output after "PV" command
Date   Sun, 10 Apr 2011 11:26:26 -0400

<>
This program has a couple of problems. For a set of estimation results to be usable, the e-class command must set local cmd to the command name with the statement

		eret local cmd "pv"

(see [U]18.10.2).  The author did not do this. He also did not return the proper e(sample) function, which is probably needed to do anything with the stored estimates. This can be achieved by using

		marksample touse
		
		ereturn post `b' `U' , esample(`touse')

Hopefully the author will submit a corrected version of pv.ado (and perhaps pvtest.ado?) to the SSC archive. In the meanwhile you could make a copy of pv.ado, rename it pv2.ado, and make the edits above near the end of pv.ado. It will then return stored estimates.

Kit Baum
kitbaum@me.com



*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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