Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: re: Sample with weights


From   "Willard van Ooij" <w.van.ooij@marktmonitor.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: re: Sample with weights
Date   Thu, 6 Oct 2005 15:13:50 +0200

Thank you very much, Stephen, for your suggestion. I must say I was a
bit surprised that nobody mentioned that they already had encountered
the same problem and found a solution for it. I did a -findit sample
weight-, but that gave not the desired result. Didn't think of doing a
-findit pps-.

Willard

-----Oorspronkelijk bericht-----
Van: Stephen P. Jenkins [mailto:stephenj@essex.ac.uk] 
Verzonden: donderdag 6 oktober 2005 14:37
Aan: statalist@hsphsun2.harvard.edu
Onderwerp: st: RE: re: Sample with weights


>
>Date: Fri, 30 Sep 2005 11:48:40 +0200
>From: "Willard van Ooij" <w.van.ooij@marktmonitor.com>
>Subject: st: Sample with weights
>
>Dear statalisters,
>
>I have a population of company's. I want a sample from this population,

>but the probability of a company to be sampled has to be equivalent 
>with the number of employees (let's call this "size").
>
>So I thought i could
>- -sample 10 [fweight=size]


I have written -samplepps- ("sample proportional to size"), available
from SSC with -ssc install samplepps-. It sounds as if this may do what
you seek

A -findit pps- would have found it (and a program by Stas Kolenikov.

--
Professor Stephen P. Jenkins <stephenj@essex.ac.uk>
Institute for Social and Economic Research (ISER)
University of Essex, Colchester, CO4 3SQ, UK
Tel: +44 (0)1206 873374. Fax: +44 (0)1206 873151.
http://www.iser.essex.ac.uk


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

*
*   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/

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