I am sorry for not being clear.
I am working on simulating two progressively censored data. The original data sizes are m1 and m2 I want to observe k1 from m1 and k2 from m2 and censor the rest (m1-k1 and m2-k2 respectively).
In the algorithm for the simulation part I need to figure out how the observations will be censored from the original data. So I need to define the censoring schemes i.e. R1 and R2. The R1 and R2 must be random. So I decided to work on them on a separate code so my code won't be long when I post it on the site.
The only conditions are the elements of the vectors are integer>0, R1[+]=m1-k1 and R2[+]=m2-k2. I could take for example m1=100 and k1=30 and in this case R1=J(3,1,0); R1[30]=70 or R1[1]=70 but this only covers the two extreme cases meaning what about the other cases where the values varies between 2nd,3rd ...etc. positions.
I am struggling in how to do it for R1 and R2 at the same time and this is where I need the help.
Thank you