etasqr.gen.2way(12.3, 15.6, 5.2, 7.9)
# Should return:
# A B AB
# A treatment, B classification: 0.300000 0.5435540 0.1811847
# A classification, B treatment: 0.484252 0.3804878 0.2047244
# A classification, B classification: 0.300000 0.3804878 0.1268293
Run the code above in your browser using DataLab