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: st: sample selection (-sample) in stata
From 
 
Joerg Luedicke <[email protected]> 
To 
 
[email protected] 
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 <[email protected]> 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/