[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: ramdom sampling more than _n or_N
I would like to ask that how can we random sampling our dataset more than _n or _N. I think we have to write a program to repeat more times instead. I never write any program before, I also have tried it but it did not work out(it only sampling 1 data and finish) so I would be very appreciate if you could help me. Below is my program;
program define sam1 /* e region Nk: to sampling e(1-841) by region(1-19) no.Nk in each region (more than no. of e in each region) */
keep if region==`t'
sample 1, count
local t =`t'+1
* For searches and help try: