Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Re: st: creating variable from svy: proportion


From   Guy Grossman <guygrossman1@gmail.com>
To   statalist@hsphsun2.harvard.edu
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index