I over looked Richard Williams' <[email protected]> reply.
Sorry about that,
Scott
----- Original Message -----
From: Richard Williams <[email protected]>
Date: Monday, April 3, 2006 11:53 pm
Subject: Re: st: table error
To: [email protected], [email protected]
> At 11:34 PM 4/3/2006, Michael Hout wrote:
> >Dear Statalisters:
> >
> >Running table with pweight gives a mysterious error message:
> >
> >.table foreign [pw=weight], c(mean price sd price n price)
> >variable __000003 not found
> >r(111);
> >
> >-Mike Hout
> >Sociology, Berkeley
> >PS
> >.table foreign [pw=weight], c(mean price sd price n price)
> >runs fine.
> 
> OK, I give up.  What is the difference between the line that gives 
> the error and the line that runs fine???  They look the same to me.
> 
> If you use aweights instead of pweights, it will run.
> 
> In the help for -table- it says
> 
> "sd (standard deviation) is not allowed with pweights."
> 
> So, it is just not giving you the right error message, i.e. it 
> should 
> have whined earlier than it did and explicitly said pw can't be 
> used with sd.
*
*   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/