Re: [R] how to generate balanced sample from two normal distribution

2009-11-22 Thread gcheer3
Thank you, Dennis. It really helps. That is what I want, for the first 10 obs in A, it is not necessary balanced. for the first 10 obs in B, it is balanced. But there is one thing I need maybe I didn't say it clear. I generate 20 observations first, I want permutation in these 20 then select t

[R] how to generate balanced sample from two normal distribution

2009-11-22 Thread gcheer3
Good afternoon, I have a question on generating simple randomization data. Thanks for any suggestions. Two normal distribution N(0,1) and N(1,1) A: I want to generate 20 data, 10 from N(0,1) and 10 from (1,1). each observation's indicator (either is from N(0,1) or N(1,1) ) is randomized. I need