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: sample selection (-sample) in stata


From   Joerg Luedicke <joerg.luedicke@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: sample selection (-sample) in stata
Date   Tue, 28 Jun 2011 15:59:49 -0400

Maybe -gsample- from Ben Jann might be helpful (-findit gsample-).

J.

On Tue, Jun 28, 2011 at 3:43 PM, Shikha Sinha <shikha.sinha414@gmail.com> wrote:
> Dear all,
>
> My question is about sample selection in stata. I want to select 100
> companies loated in 10 cities from an universe of 800 comapnies. My
> data structure is as below:
>
> City                  company id           Type (manufacturing)
> 1                             1                                 1
> 1                             2                                 0
> 1                             3                                  1
> 2                             4                                  0
> 2                             5                                  1
> 2                             6                                   0
> ..
> .
> .
> .
>
> .
> .
> so on.
>
> I want to select a sample of 25 companies from these 100, using
> probablity weights of slection i.e. Probability proportional to size.
> Is there any comand in stata.
> I have tried -sample but of no avail.
>
> Please advise.
> *
> *   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/
>

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