Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Shikha Sinha <shikha.sinha414@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: sample selection (-gsample) in stata |
Date | Tue, 5 Jul 2011 14:48:03 -0700 |
Thanks Jann. -gsample looks good, but I am still struggling. How do I calculate the size for -gsample. I want the select companies from each cities and of each type in each city. Thanks, S On Tue, Jun 28, 2011 at 12:59 PM, Joerg Luedicke <joerg.luedicke@gmail.com> wrote: > 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/ > * * 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/