Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: creating variable from svy: proportion


From   Guy Grossman <[email protected]>
To   [email protected]
Subject   Re: st: creating variable from svy: proportion
Date   Mon, 3 May 2010 15:46:25 -0400

Dear Steve -

Thanks a million for the note. One last question which I hope
finalizes the thread. I also need to calculate totals at the
cooperative level for continuous variable isb32a. following your
advice I set the design to reflect only the prob of selecting ind X
prob of selecting a group.

new_pw = (1/prob sel pocode) x (1/ prob sel individual).
svyset dccode [pw= new_pw], strata (strata) fpc(fpc1) || pocode,
fpc(npos) || _n fpc(popop)

Howeve when I run the svy: total command I get the following error message:
svy: total isb32a , over(dccode)
(running total on estimation sample)

fpc for all observations within a stratum must be the same
r(461);

any idea how to fix the error?
Again, many thanks to all those contributing to the thread!

Guy
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index