SweetPea

SweetPea is a domain-specific programming language built for the declarative specification of randomized experimental designs and the synthesis of trial sequences generated from those design specifications.

An experimental design is a description of experimental factors, relationships between those factors, constraints on the sequencing of factors, and how to map those factors onto a sequence of trials. Such a design is constructed by calling the various functions exposed at the top of the sweetpea module.

If you are new to SweetPea or factorial experiment design, we recommend starting with the guide.