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: Re: st: calibrated weights


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: Re: st: calibrated weights
Date   Thu, 25 Oct 2012 12:20:24 +0100

I haven't been following this, but setting aside -svy- complications,
the mean proportion is just the mean of any expression yielding 0 or
1.

sysuse auto
egen pr_foreign = mean(foreign), by(rep78)
tabdisp rep78, c(pr_foreign)

Nick

On Thu, Oct 25, 2012 at 12:12 PM, Tomas Lind <[email protected]> wrote:
> I have downloaded -calibest- from SSC. There is also a companion ado-file -calibrate- (on SSC) that creates the calibrated weights. In my case I have got a dataset with calibrated weights.
>
> I have tried egen with the group() extension but in that case all new subgroups (agegroup by sex) sum to 100%. I want to know the proportion of women in each agegroup (for example).
>
> /Tomas
>
>
>
>
>
> [email protected] skrev: -----
> Till: [email protected]
> Från: Steve Samuels
> Sänt av: [email protected]
> Datum: 2012-10-25 00:05
> Ärende: Re: st: calibrated weights
>
> Tomas Lind:
>
> Please give a link/source to the unofficial command -caibest- as the FAQ request.
> To answer your question: create a combination variable that has age-gender categories.
> You can use  -egen- with the group() extention  or -groups-, by Nick Cox, available
> from SSC, which will save a data set with the combinations.
>
> Steve
>
> On Oct 24, 2012, at 7:34 AM, Tomas Lind wrote:
>
> Hi Statalist
>
>
> Question about how to analyze survey data with calibrated weights.
>
>
> There is an ado-file calibest that makes it possible to analyze survey data with calibrated weights (ref below). However, it seems impossibly to use calibest to calculate mean values and proportions for men and women _subdivided_ on agegroups (for example). Like you usually do using -over()- or -by- options.
>
> Is there a way around this problem?
>
>
> Yours
> Tomas Lind
>
>
> I´m using Stata 11 on a PC.
>
>
> Reference
> Deville, J.-C., and C.-E. Särndal.  1992.  Calibration estimators in survey
>        sampling.  Journal of the American Statistical Association 87:
>        376-382.
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/
>
>
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index