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

st: Select sample

From   "Augusto Hoszowski" <>
To   <>
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
seleccio 1

Sincerely yours,

Augusto Hoszowski
Instituto Nacional de Estadistica y Censos

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index