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

st: Select sample


From   "Augusto Hoszowski" <[email protected]>
To   <[email protected]>
Subject   st: Select sample
Date   Thu, 12 Sep 2002 14:15:22 -0300

Hi ,

I need to select one sample stratified. My  file contains the id_strata, the
size of the sample in the strata and size_sample. What is wrong with  the
syntax ?

program define seleccio
   local tamanio size_sample[`1']
   by id_strata: sample `tamanio', count
end
seleccio 1

Sincerely yours,

Augusto Hoszowski
Instituto Nacional de Estadistica y Censos
Argentina

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