Statalist


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

Re: st: RE: RE: Useing e(over_labels)


From   Richard Palmer-Jones <[email protected]>
To   [email protected]
Subject   Re: st: RE: RE: Useing e(over_labels)
Date   Thu, 9 Jul 2009 15:07:30 +0100

Thanks folks, indieed, but .. it is the values of the _subpops that I
want to use - in martyen's case the values of foreign and rep78

. mean mpg, over(for rep,  nolabel)

Mean estimation                     Number of obs    =      69

         Over: foreign rep78
    _subpop_1: 0 1
    _subpop_2: 0 2
    _subpop_3: 0 3
    _subpop_4: 0 4
    _subpop_5: 0 5
    _subpop_6: 1 3
    _subpop_7: 1 4
    _subpop_8: 1 5

--------------------------------------------------------------
        Over |       Mean   Std. Err.     [95% Conf. Interval]
-------------+------------------------------------------------
mpg          |
   _subpop_1 |         21          3      15.01359    26.98641
   _subpop_2 |     19.125   1.328768      16.47348    21.77652
   _subpop_3 |         19   .7862783      17.43101    20.56899
   _subpop_4 |   18.44444   1.528535       15.3943    21.49459
   _subpop_5 |         32          2      28.00906    35.99094
   _subpop_6 |   23.33333   1.452966      20.43398    26.23268
   _subpop_7 |   24.88889   .9043789      23.08423    26.69355
   _subpop_8 |   26.33333   3.122499      20.10248    32.56418
--------------------------------------------------------------


and, I should have said I am using svy: mean for important reasons.
collapse  does not have a svy equivalent, I think?

I cannot see an option on parmest to use the e(over_labels), so, still
in the dark I am afraid.

Richard


On Thu, Jul 9, 2009 at 12:56 PM, Nick Cox<[email protected]> wrote:
> Using -collapse- is another (and easier) possibility.
>
> Nick
> [email protected]
>
> Martin Weiss
>
> cap ssc inst parmest
> sysuse auto, clear
> mean mpg, over(for rep,  nolabel)
> parmest, saving(myfile, replace)
> u myfile, clear
> drop eq t dof
> l
>
> Richard Palmer-Jones
>
> I want to compuile the ereturned e(b) and e(v) results of a "mean
> var1, over(var2 var3, nolabel)" into a usable form, such as rows in
> new variables or a matrix, together with the relevatn values of var2 &
> var3
>
> I think this means making use of the values in e(over_labels), but how
> to do so escapes me.
>
> *
> *   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index