Generation of binary data using Beta distribution in R -
i new user in r. in work, have generate binary data(0 or 1) using beta distribution (rbeta command). have create matrix of such data. in of columns want have more zeros ones or ones more zeros. , should done taking shaping parameter 1 = shaping parameter 2 =0.5. tried combinations. not able this. please let me know way same. hint provided was: take probability(0) =some number , probability(1) = 1- probability(0). give these parameters rbeta command. did not find such facility rbeta command. please let me knoe if there way.
thanking you, kalyani
Comments
Post a Comment