I am new user in R. In my work, I have to generate binary data(0 or 1) using beta distribution (rbeta command). I have to create a matrix of such data. In some of the columns I want to have more zeros than ones or ones more than zeros. And this should be done taking shaping parameter 1 = shaping parameter 2 =0.5. I tried all combinations. But I am not able to do this. Please let me know the way to do the same. The hint I was provided was: Take probability(0) =some number and probability(1) = 1- probability(0). Then give these parameters to rbeta command. But I did not find such facility with rbeta command. Please let me knoe if there is any way.
Thanking you, Kalyani