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/