Displaying 1 result from an estimated 1 matches for "sampy".
Did you mean:
samp
2006 Jul 04
2
random sampling problems?
Dear friends,
suppose my dataset is the following data:
id<-1:9
x<-c(1,2,3,1,2,3,1,2,3)
y<-c(1,1,1,2,2,2,3,3,3)
data<-data.frame(id,x,y)
id x y
1 1 1 1
2 2 2 1
3 3 3 1
4 4 1 2
5 5 2 2
6 6 3 2
7 7 1 3
8 8 2 3
9 9 3 3
i want to do sampling like this:say the sample size is 3.
First: random sampling from x;
Next ,random sampling from