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 on April 23, and its replacement, 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 <>
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

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

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index