treatment "dynamic.ztt"{ background{ table globals{ } table subjects{ } table summary{ } table contracts{ } table session{ } numsubjects = 2; numgroups = 1; numpracticeperiods = 0; numactualperiods = 2; exchangerate = 0.005; startendowment = 0; showupfee = 0; noAutoscope = FALSE; v2IntegerVars = TRUE; v2BooleanVars = TRUE; firstBoxesOnTop = TRUE; showupfeeawaytext = "Sie haben Verlust gemacht. Wollen Sie das Startgeld einsetzen, um diesen Verlust zu decken?"; showupfeeawayyestext = "Ja"; showupfeeawaynotext = "Nein"; moneyawaytext = "Sie haben Verlust gemacht. Wollen Sie weiterfahren?"; moneyawayyestext = "Ja"; moneyawaynotext = "Nein"; bancruptwaittext = "Bitte warten Sie bis Ihr Computer wieder freigegeben wird."; program{ table = globals; do{ thetamin=0.491373; thetamax=7.32689; gamma=1; alpha=0.78; pas=15; //pas bedeutet periods after stabilization g=50; tax=gamma*g; prize=100; costmin=(0.5+thetamin)*tax; costmax=(0.5+thetamax)*tax; Period1=0; x=130.435756; //x gibt Sekunden pro Periode an a=-10; //Laenge des Countdowns in Sekunden second=a; //second gibt Zahl der mitgebotenen Sekunden an } } program{ table = subjects; do{ //gleichverteilung theta=random()*(thetamax-thetamin)+thetamin; cost=(0.5+theta)*tax; stopbidding=0; startaccount=1900; currentaccount = startaccount+TotalProfit; LeaveStage=0; stop=0; } } screen action{ usesbg = TRUE; withalertscreen = FALSE; noalertscreen = FALSE; headerbox "Header"{ hasframe = TRUE; height = 10%; top = 0p; cuttop = TRUE; showPeriods = TRUE; showNumPeriods = TRUE; periodtext = "Periode"; periodoftext = "von"; practiceperiodprefix = "Probe "; showtime = TRUE; timestr = "Verbleibende Zeit [sec]:"; pleasedecidetext = "Bitte entscheiden Sie sich jetzt !"; } } screen wait{ usesbg = TRUE; withalertscreen = FALSE; noalertscreen = FALSE; standardbox "Text"{ hasframe = TRUE; buttonposition = BOTTOMRIGHT; buttonsequence = HORIZONTAL; item{ label = "Bitte warten Sie, bis das Experiment weiter geht."; } } } } stage "Information"{ startwaitforall = TRUE; singleentry = FALSE; singleentrycontinuation = FALSE; timeouttype = never; timeout = 25; screen action{ usesbg = TRUE; withalertscreen = FALSE; noalertscreen = FALSE; standardbox "Standard"{ hasframe = FALSE; left = 10%; right = 10%; top = 10%; bottom = 10%; buttonposition = BOTTOMRIGHT; buttonsequence = HORIZONTAL; item{ } item{ } item{ label = "Pro Sekunde, die Sie um den Preis mitbieten, entstehen für Sie die folgenden Kosten:"; variable = 1/x*cost; format = "0.01"; input = FALSE; } item{ label = "<>Die Kosten Ihres Mitspielers sind mit jeweils gleicher Wahrscheinlichkeit eine Zahl zwischen <1/x*costmin | 0.01> und < 1/x*costmax | 0.01> pro Sekunde."; } item{ } item{ } button "OK"{ clearinputafterok = FALSE; norecordmadeorselected = FALSE; terminatestage = TRUE; donotterminatestage = FALSE; specialbuttoncolor = FALSE; buttoncolor = 0; } } } screen wait{ usesbg = TRUE; withalertscreen = FALSE; noalertscreen = FALSE; } } stage "Decision"{ startwaitforall = TRUE; singleentry = FALSE; singleentrycontinuation = FALSE; timeouttype = ifnoinput; timeout = 3000; program{ table = globals; do{ later (1) repeat {second=second+1;} } } screen action{ usesbg = TRUE; withalertscreen = FALSE; noalertscreen = FALSE; containerbox "Container1"{ hasframe = FALSE; width = 100%; height = 60%; top = 0%; cuttop = TRUE; standardbox "Standard"{ hasframe = FALSE; width = 65%; height = 14%; cuttop = TRUE; buttonposition = BOTTOMRIGHT; buttonsequence = HORIZONTAL; item{ label = "<>Der Wert des Preises beträgt ."; } } standardbox "Standard"{ hasframe = FALSE; width = 100%; height = 86%; top = 0%; bottom = 0%; buttonposition = BOTTOMRIGHT; buttonsequence = HORIZONTAL; item{ label = "<>Die Kosten Ihres Mitspielers liegen zwischen <1/x*costmin | 0.01> und <1/x*costmax | 0.01> pro Sekunde. "; } item{ label = "<> Ihre Kosten sind <1/x*cost | 0.01> pro Sekunde."; } item{ } item{ label = "Sie haben nun bereits die folgende Zahl von Sekunden mit um den Preis geboten:"; variable = second; format = "0.01"; input = FALSE; } item{ label = "Bisher haben Sie in dieser Auktion also den folgenden Betrag um den Preis geboten:"; variable = second*(1/x*cost); format = "0.01"; input = FALSE; } } } containerbox "Container2"{ hasframe = FALSE; width = 100%; height = 40%; cuttop = TRUE; displaycondition = second>=0; standardbox "Standard"{ hasframe = FALSE; height = 100%; left = 10%; right = 10%; top = 0%; bottom = 10%; cuttop = TRUE; buttonposition = BOTTOMRIGHT; buttonsequence = VERTICAL; item{ } item{ label = "Drücken Sie auf den Knopf rechts unten, um aus der Auktion auszusteigen."; } item{ } button "Ich höre auf zu bieten."{ clearinputafterok = FALSE; norecordmadeorselected = FALSE; terminatestage = FALSE; donotterminatestage = FALSE; specialbuttoncolor = FALSE; buttoncolor = 0; program{ table = subjects; do{ subjects.do {if ( same(Group)){stop=1; LeaveStage=1; totalcost=second*(1/x*cost);}} stopbidding = 1; } } } } } } screen wait{ usesbg = TRUE; withalertscreen = FALSE; noalertscreen = FALSE; } } stage "Results"{ startwaitforall = FALSE; singleentry = FALSE; singleentrycontinuation = FALSE; timeouttype = never; timeout = 30; program{ table = subjects; do{ if (sum (same(Group), stopbidding)==2) {winner=0.5;} elsif (sum (same(Group), stopbidding)==1 & stopbidding==0) {winner=1;} elsif (sum (same(Group), stopbidding)==1 & stopbidding==1) {winner=0;} if (Period==1) {Period1=1;} else {Period1=0;} Profit = winner*prize - totalcost + Period1*startaccount; sumofcost = sum (same(Group), cost); otherscostpersecond = 1/x*(sumofcost-cost); sumoftotalcost = sum (same(Group), totalcost); otherstotalcost = sumoftotalcost-totalcost; } } screen action{ usesbg = TRUE; withalertscreen = FALSE; noalertscreen = FALSE; containerbox "Container"{ hasframe = FALSE; height = 30%; top = 0%; cuttop = TRUE; standardbox "Standard"{ hasframe = FALSE; cuttop = TRUE; buttonposition = BOTTOMRIGHT; buttonsequence = HORIZONTAL; item{ variable = winner; format = "!text: 1=\"Sie haben den Preis gewonnen.\";\r\n0=\"Ihr Mitspieler hat den Preis gewonnen.\";"; input = FALSE; } item{ } item{ } item{ label = "Ergebnisse der Auktion:"; } } } containerbox "Container"{ hasframe = FALSE; height = 40%; top = 0%; cuttop = TRUE; gridbox "Grid"{ hasframe = TRUE; left = 10%; right = 10%; buttonposition = BOTTOMRIGHT; buttonsequence = HORIZONTAL; numrows = 2; numcolumns = 7; firstcolumnwidth = 100; firstrowheight = 100; fieldsinrows = FALSE; infieldlabeisallowed = FALSE; firstrowislabel = FALSE; firstcolumnislabel = FALSE; labelseparators = FALSE; rowseparators = TRUE; columnseparators = TRUE; item{ label = "Auktion"; } item{ variable = Period; format = "1"; input = FALSE; } item{ label = "Eigene Bietkosten pro Sekunde"; } item{ variable = 1/x*cost; format = "0.01"; input = FALSE; } item{ label = "Bietkosten des Mitspielers pro Sekunde"; } item{ variable = otherscostpersecond; format = "0.01"; input = FALSE; } item{ label = "Eigene Kosten (gesamt)"; } item{ variable = totalcost; format = "0.01"; input = FALSE; } item{ label = "Kosten des Mitspielers (gesamt)"; } item{ variable = otherstotalcost; format = "0.01"; input = FALSE; } item{ label = "Eigener Gewinn"; } item{ variable = winner*prize; format = "1"; input = FALSE; } item{ label = "Neuer Kontostand"; } item{ variable = TotalProfit; format = "0.01"; input = FALSE; } } } containerbox "Container"{ hasframe = FALSE; width = 100%; height = 30%; top = 0%; bottom = 0%; standardbox "Standard"{ hasframe = FALSE; height = 100%; left = 10%; right = 10%; bottom = 20%; buttonposition = BOTTOMRIGHT; buttonsequence = HORIZONTAL; button "OK"{ clearinputafterok = FALSE; norecordmadeorselected = FALSE; terminatestage = FALSE; donotterminatestage = FALSE; specialbuttoncolor = FALSE; buttoncolor = 0; } } } } screen wait{ usesbg = TRUE; withalertscreen = FALSE; noalertscreen = FALSE; } } roles{ role "S 1"{ } role "S 2"{ } } period "1"{ subject 1{ group = 1; } subject 2{ group = 1; } } period "2"{ subject 1{ group = 1; } subject 2{ group = 1; } } }