Statalist


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

Re: st: subpop() option of svy commands


From   Richard Williams <[email protected]>
To   [email protected], "[email protected]" <[email protected]>
Subject   Re: st: subpop() option of svy commands
Date   Wed, 09 Jul 2008 12:47:44 -0500

At 11:14 AM 7/9/2008, Sergiy Radyakin wrote:
Dear All,

is this a correct behaviour?

sysuse auto
svyset [w=weight]
svy: mean price, subpop(if !missing(rep78))

(running mean on estimation sample)
missing() may not be nested within missing()
invalid syntax
r(198);
Maybe subpop doesn't like using functions.  Simple workaround:

svy: mean price, subpop(if rep78 < .)


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  [email protected]
WWW:    http://www.nd.edu/~rwilliam

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index