Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Select subset.


From   "Cai,Zhuangyu" <[email protected]>
To   <[email protected]>
Subject   st: Select subset.
Date   Wed, 23 Jan 2013 16:26:32 -0500

Hi there,

I have a troubling for selecting subset from one data set which has 1000 resample data. I want to select one of 1000 resample data each time. I want to know if there is method to use loop to select subsets automaticly. Thanks for your help.

Zhuangyu Cai
xi_bar	xi_hat	replicate	id
.407	.75	1	1
.407	.75	1	2
.407	.75	1	3
.407	.75	1	4
.313	.5	1	5
.313	.5	1	6
.313	.5	1	7
.585	.5384615385	1	8
.585	.5384615385	1	9
.585	.5384615385	1	10
.198	0	2	1
.198	0	2	2
.53	.75	2	3
.53	.75	2	4
.53	.75	2	5
.53	.75	2	6
.53	.75	2	7
.361	.3333333333	2	8
.361	.3333333333	2	9
.361	.3333333333	2	10
.118	0	3	1
.118	0	3	2
.185	.1538461538	3	3
.185	.1538461538	3	4
.185	.1538461538	3	5
.185	.1538461538	3	6
.185	.1538461538	3	7
.185	.1538461538	3	8
.185	.1538461538	3	9
.431	.7142857143	3	10
.272	1	4	1
.272	1	4	2
.272	1	4	3
.185	.4	4	4
.185	.4	4	5
.185	.4	4	6
.185	.4	4	7
.185	.4	4	8
.185	.4	4	9
.407	.4	4	10
.809	1	5	1
.786	.7142857143	5	2
.786	.7142857143	5	3
.786	.7142857143	5	4
.786	.7142857143	5	5
.786	.7142857143	5	6
.786	.7142857143	5	7
.695	.6153846154	5	8
.695	.6153846154	5	9
.695	.6153846154	5	10
.553	.8571428571	6	1
.553	.8571428571	6	2
.553	.8571428571	6	3
.553	.8571428571	6	4
.553	.8571428571	6	5
.546	.625	6	6
.546	.625	6	7
.546	.625	6	8
.546	.625	6	9
.546	.625	6	10
.455	1	7	1
.455	1	7	2
.501	.2307692308	7	3
.501	.2307692308	7	4
.501	.2307692308	7	5
.501	.2307692308	7	6
.501	.2307692308	7	7
.501	.2307692308	7	8
.501	.2307692308	7	9
.501	.2307692308	7	10
.455	.5384615385	8	1
.455	.5384615385	8	2
.455	.5384615385	8	3
.455	.5384615385	8	4
.455	.5384615385	8	5
.455	.5384615385	8	6
.455	.5384615385	8	7
.455	.5384615385	8	8
.659	.625	8	9
.659	.625	8	10
.486	.5	9	1
.486	.5	9	2
.407	.7272727273	9	3
.407	.7272727273	9	4
.407	.7272727273	9	5
.407	.7272727273	9	6
.407	.7272727273	9	7
.407	.7272727273	9	8
.407	.7272727273	9	9
.77	1	9	10


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index