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   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: FW: saving regression output after "PV" command
Date   Sun, 10 Apr 2011 16:00:52 +0100

Thanks. Now something can be said.

-pv- (SSC) does not set -e(cmd)-; that is an oversight sufficient for
-estimates store- not to work after -pv-.

To run a decomposition, I guess you will have to work with what -pv-
does leave behind or to rewrite -pv- so that it behaves as you wish.
What -pv- does leave behind is shown by

. eret li

after your call to -pv-.

On Sun, Apr 10, 2011 at 3:48 PM, Menshawy Badr <[email protected]> wrote:

> 1) I installed the command "pv"
> "ssc install pv"
> 2) run the regression "example"
> sysuse auto
> pv  length weight, cmd ("reg") pv ("price")
> 3)trying to store estimates
> Estimates store mod1
> 4) stata error " last estimation results not found, nothing to store
> r(301);"
>
> what do you think, where this problem come from.
> Is it something wrong with the pv module or something wrong I do.

> From: Badr Menshawy

> Here it is an example of what I am doing
> sysuse auto
> pv  length weight, cmd ("reg") pv ("price")
> Estimates for price complete
>
> Number of observations: 74
> Average R-Squared: .3475630724239042
>
> Plausible Values: price
>
>
>              Coef     Std Err           t     t Param       P>|t|
> length  -97.960312   39.174598   -2.500608          71   .01470813
> weight   4.6990649   1.1223393   4.1868486          71   .00007998
>  _cons   10386.541   4308.1585   2.4109003          71    .0185038
>
> . estimates store
>
> Here it is the error message
> last estimation results not found, nothing to store
> r(301);
>
> From: Badr Menshawy
>
> The "PV" command is a user written module to estimate the data from large stratified samples like "PISA, PIRLS and TIMSS".
> The PV command is very useful, the problem is that after running the command I do want to use the estimates of two subgroups to run decomposition, but it does not see the output when using "estimates store" stata return (last estimation results not found, nothing to store).
>
> From: Badr Menshawy
>
> I am doing regression analysis on stratified sample using PV command.
> I am trying to use estimates store after running the command to use the output in another analysis but it does not work (error says: last estimation results not found, nothing to store).

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index