Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: table error


From   smerryman@kc.rr.com
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: table error
Date   Tue, 04 Apr 2006 06:58:20 -0500

I over looked Richard Williams' <Richard.A.Williams.5@ND.edu> reply.

Sorry about that,
Scott


----- Original Message -----
From: Richard Williams <Richard.A.Williams.5@ND.edu>
Date: Monday, April 3, 2006 11:53 pm
Subject: Re: st: table error
To: statalist@hsphsun2.harvard.edu, statalist@hsphsun2.harvard.edu

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



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index