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]

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

From   Kit Baum <>
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

*   For searches and help try:

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