Updated R-code [R for BE/BA]

Hi Helmut!

» Note the warning. You would need 8 or 16 subjects if you want sex balanced within the 4 sequences. If you insist in this, you can used the optional argument extend = "up". Decreasing the sample size by extend = "down" is also supported but doesn’t make much sense.

Another way to deal with situations, when we use not 8 or 16 subjects without increasing number of subjects, would be to slightly change F/M ratio from 50/50 to, for instance, F/M ratio 47/53 (30 subjects, 14 females and 16 males). How would the code to be changed in that case? If possible.

Best regards
Beholder