I am quite confused... and thinking is this bug real? How can it be? I just want to make a vector of 0's and 1's.
Here's the source and the outcome
n.subj=1000
prop.aber = 0.9
n.measure = 3
n.subj.norm = n.subj*(1-prop.aber)
n.subj.aber = n.subj*prop.aber
labE <- rnorm(n.subj*n.measure, 0, 1)
labT_ <- c(rep(0, n.subj.norm), rep(1, n.subj.aber)); length(labT_)
sum(labT_ == 0); sum(labT_ == 1)
[1] 99
[1] 900
My common sense tells me that it should be 100 and 900!!!!!!?!?!?????