A Course in z-Tree


2: Basics



Matteo Ploner
Università degli Studi di Trento

z-Tree


  • The Zurich Toolbox for Readymade Economic Experiments is the standard to conduct academic economic experiments
  • The current version 3.6.7 has been released on June 21, 2016.
  • Map of licenses
  • Heare you can fill the form to obtain a license
    • Free of charge for academic use
  • Correct citation
    • Fischbacher, U. (2007). z-Tree: Zurich Toolbox for Ready-made Economic Experiments. Experimental Economics, 10(2), 171-178.

To learn more about z-Tree



z-Tree Infrastructure


Infrastructure


Setting up your environment


Properties of the Leaf


  • /server adr
    • "adr" contains the IP address of the experimenter PC.
  • /name name
    • "name" is the name the client has in the clients’ table.
  • /size widthxheight
    • Size of the client’s window. In this way you can test on a large screen how the layout will look on a small screen. For example, the VGA format is 640x480. No spaces around the 'x'
  • /position xpos,ypos
    • Position of the client’s window with respect to the top left corner. No spaces around the comma.

General Structure


Preliminaries


  • Define here the basic features of the experiment
    • Number of repetitions
    • Number of participants

General structure


  • Stage
    • Containes the code for each expeirmental stage
  • Box
    • Defines the type of information presented on a screen
  • Item
    • The information provided/collected from the participant

Stage


Stage (ii)



Boxes


Screen organization


Boxes


Types of boxes: Standard Box



Types of boxes: Header Box



Types of boxes: Grid Box



Types of boxes: Plot Box




Items


Item


Output




Input




Input Layouts






Input Layouts (ii)







Buttons




Tables


Tables


Tables (ii)


Programs


Programs (ii)


Assignment


  • Set up a working environment with 4 clients
  • Create a treatment called "Hello_world"
    • A stage called "My_first_stage"
      • 3 standard boxes with the following layout
      • In Box 2 insert the following statement "I like this course"
      • In Box 3 insert a radioline input with scale 1 (not at all) to 5 (very much)
        • + a button to submit the answer