The Internet offers enormous possibilities for surveys and experimental data collection, including randomised treatments, customisation, and inter- activity. These capabilities are well suited to the implementation of choice modelling experiments. However, the implementation of web surveys is not a simple task, and the existing options open to researchers are commonly unsatisfactory in a number of ways. The result is that few Internet surveys and experiments are able to exploit the unique capabilities of the web. This paper suggests a new approach, illustrated with a working prototype: an open-source, domain-specific language (DSL) designed for specifying web surveys and experiments, which is called websperiment. The paper first looks at the existing approaches, highlighting their strengths and weaknesses. It then outlines the concepts underlying websperiment, and this DSL's nature and scope, with simple code examples. Finally, it shows how the DSL can be used to concisely specify a highly dynamic choice modelling survey.
MacKerron, G. (2011). Implementation, implementation, implementation: Old and new options for putting surveys and experiments online. Journal of Choice Modelling, 4(2), 20–48. https://doi.org/10.1016/S1755-5345(13)70056-3