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: Esimates Table commend


From   William Hart <[email protected]>
To   "[email protected]" <[email protected]>
Subject   RE: st: Esimates Table commend
Date   Tue, 28 Aug 2012 14:12:35 -0500

That seems clear enough, except...

The same code worked properly until I used the BRR method for estimation.  I can see nothing the docs that suggest that the code would need to be different using OLS under the SVY commands.

Bill

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Joerg Luedicke
Sent: Monday, August 27, 2012 12:35 PM
To: [email protected]
Subject: Re: st: Esimates Table commend

If something does not work the way you would expect it to work, it is always a good idea to consult a) the help file(s), b) the manual, and
c) further material like books and articles etc., probably in that order. In this case, a simple look at the syntax rules for -estimates
table- in the help file reveals:

estimates table [namelist] [, options]

If this command would take variables as arguments then it would not say [namelist], but rather [varlist]. It is also stated in the help file that this [namelist] refers to stored estimation results.

J.


On Mon, Aug 27, 2012 at 11:37 AM, William Hart <[email protected]> wrote:
> I am running the commands below.  When my DO file gets to the Estimates Table command, it says that the Predict variable cannot be found.  However, I can 'see' the variables and can run summary variables on them.  What, very obvious, point am I overlooking?
>
> TIA,
>
> Bill Hart, [email protected]
>
> .  svy brr : regress newfdpct erankh educ_ref educa2 house alcohol 
> util appar
>> trans entr read tobac misc cash insur health work2 work3 if 
>> sex_ref==1
> (running regress on estimation sample)
>
> <Stuff deleted>
> .
> . predict fdpctmale if e(sample)
> (option xb assumed; fitted values)
> (61432 missing values generated)
> r; t=0.02 11:10:31
>
> <stuff deleted>
>
> . svy brr : regress newfdpct erankh educ_ref educa2  house alcohol 
> util appar
>> trans entr read tobac misc cash insur health work2 work3 if 
>> sex_ref==2
> (running regress on estimation sample)
>
> <stuff deleted>
> .
> . predict fdpctfemale if e(sample)
> (option xb assumed; fitted values)
> (70857 missing values generated)
> r; t=0.02 11:10:34
>
> <stuff Deleted>
>
> . estimates table fdpctfemale fdpctmale,b(%9.6f) star stats(N f_r) 
> estimation result fdpctfemale not found r(111); t=0.05 11:10:40
>
> . summ fdpctmale fdpctfemale awaypctmale awaypctfemale
>
>    Variable |       Obs        Mean    Std. Dev.       Min        Max
> -------------+--------------------------------------------------------
>    fdpctmale |     18526    .1670943    .0473593  -.2985667   .2682556
>  fdpctfemale |      9101    .1684507    .0456866  -.1752876   .3141496
>  awaypctmale |     18520    .2721265    .0906052  -.0322625   1.137353
> awaypctfem~e |      9099    .2591119    .0952958   -.072858   .7787072
> r; t=0.06 11:28:25
>
>
> *
> *   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/

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

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