Re: [R] Writing an R fn to produce random sequences of binaries XXXX

2013-10-15 Thread Duncan Murdoch
On 13-10-15 7:55 AM, Dan Abner wrote: Hi all, I am attempting to write an R fn to produce a random sequence of 8 binaries (4 ordered pairs). I would like to parmeterize the fn so that it takes 2 arguments: 1 that is an overall probability of a 1 vs. 0 and the other which controls the likelihood

[R] Writing an R fn to produce random sequences of binaries XXXX

2013-10-15 Thread Dan Abner
Hi all, I am attempting to write an R fn to produce a random sequence of 8 binaries (4 ordered pairs). I would like to parmeterize the fn so that it takes 2 arguments: 1 that is an overall probability of a 1 vs. 0 and the other which controls the likelihood of 1s on the 1st vs. the 2nd element of