NYUCCL / counterbalancing

A general-purpose library for implementing counterbalancing for web-based and lab-based behavioral experiments
3 stars 2 forks source link

Counterbalancing

Library for implementing counterbalancing for web-based experiments

How to create an experiment with a color variable and a shape variable


e = Experiment()
e.add_param("color", uniformChoice(choices = ["blue", "green"]))
e.add_param("shape", conditionedRoundRobin(choices = ["square", "circle"]), ["color"]))
e.create_table(10)