sungmoo 2010-1-10 16:10:04 *试一下 clear g d1=. g sample=. save a,replace clear input d1 1 9 13 16 17 20 25 31 32 33 35 36 38 42 end forv i=1/100{ preserve sample 9,count g sample=101-`i' append using a save a,replace restore } use a,clear list
eblog 2010-1-10 16:37:15 方法二: clear all set obs 1400 egen d1=fill(1 9 13 16 17 20 25 31 32 33 35 36 38 42 1 9 13 16 17 20 25 31 32 33 35 36 38 42) gen group=group(100) sample 9, by(group) count
全部评论 7