table.from.odds(.17, .5, 3.18, 100)
# Should return:
# cell 11 cell 12 cell 21 cell 22
# Proportion: 0.1233262 0.04667383 0.3766738 0.4533262
# Frequency: 12.0000000 5.00000000 38.0000000 45.0000000
Run the code above in your browser using DataLab