Clive,
For the first question, -betacoef- uses -summarize- which does not allow
pweights.
For the second question, -betacoef- does not produce output but saves it as a
matrix.
Example:
. qui reg price mpg length [aw = weight]
. betacoef
. return list
matrices:
r(beta) : 1 x 3
. matrix list r(beta)
r(beta)[1,3]
mpg length _cons
y1 -.3683858 .13518516 0
Scott
----- Original Message -----
From: "Clive Nicholas" <[email protected]>
To: <[email protected]>
Sent: Monday, January 12, 2004 6:22 PM
Subject: Re: st: -betacoef-
> Kit,
>
> I think I encountered a more fundamental problem with -betacoef-: I
> couldn't get it to work! My current regressions are weighted (which
> -betacoef- has the ability to handle according to its description), but
> when I run a model such as:
>
> -reg beatles john paul george ringo [pw=epstein]-
> -betacoef-
>
> I get an r(101) error. I've tried running -betacoef- after -reg [aw]- and
> without any weights at all. All I get is silence. Adding -betacoef- as an
> option to -reg- isn't allowed.
>
> Am I going somewhere wrong or is the package?
>
> C.
>
> > Mark Schaffer reported a couple of problems with betacoef: one with
> > time series operators, and one specific to Stata version 7 (I cannot
> > test Stata 7 functionality). Both have been fixed in the SSC-accessible
> > version of betacoef.
> >
> > Thanks
> > Kit
> >
> > *
> > * For searches and help try:
> > * http://www.stata.com/support/faqs/res/findit.html
> > * http://www.stata.com/support/statalist/faq
> > * http://www.ats.ucla.edu/stat/stata/
> >
>
>
> CLIVE NICHOLAS |t: 0(44)191 222 5969
> Politics Building |e: [email protected]
> School of Geography, |f: 0(44)870 126 2421
> Politics & Sociology |
> University of |
> Newcastle-upon-Tyne |
> Newcastle-upon-Tyne |
> NE1 7RU |
> United Kingdom |http://www.ncl.ac.uk/geps
>
> (c) The University of Newcastle upon Tyne is a registered trademark of
> Universities UK, a division of World Wrestling Entertainment, a
> subdivision of Fox Inc., part of Muddy Fox, a joint-stock partnership with
> the band Mud. Muddy Fox is a subdivision of IMG/McCormack, a division of
> Coca-Cola, part-owner of God, Jesus, Moses and Son (GJMS) Miracles plc.
> GJMS Miracles is a registered trademark of the University of Newcastle
> upon Tyne. All rights reserved 2003.
> *
> * For searches and help try:
> * http://www.stata.com/support/faqs/res/findit.html
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/