Routing for UAS127

introduction := 25
IF randNum = EMPTY THEN
randNum := mt_rand(1,2)
End of if
dummy := getUAS5Preload()
counter := 1
IF StartingPointX[counter] = EMPTY THEN
Loop from 1 to 2
IF randNum = 1 THEN
PracticeLineX[counter] := mt_rand ( 5 , 50 )
IF PracticeLineX[counter] < 25 THEN
PracticeLineY[counter] := mt_rand( 25 , 50)
Else
PracticeLineY[counter] := mt_rand(5 ,50 )
End of if
Else
PracticeLineY[counter] := mt_rand ( 5 , 50 )
IF PracticeLineY[counter] < 25 THEN
PracticeLineX[counter] := mt_rand(25 ,50)
Else
PracticeLineX[counter] := mt_rand(5 ,50)
End of if
End of if
PracticeStartingPointX[counter] := mt_rand(PracticeLineX[counter] - 3 , PracticeLineX[counter] + 3)
DX := (PracticeLineX[counter] + 3) - (PracticeLineX[counter] - 3)
DY := (PracticeLineY[counter] - 3) - (PracticeLineY[counter] + 3)
PracticeStartingPointY[counter] := (PracticeLineY[counter] + 3 ) + DY * (PracticeStartingPointX[counter] - PracticeLineX[counter] - 3) / DX;
End of loop
Else
counter := 1
PracticeLineX[counter] := 40.096756
PracticeLineY[counter] := 35
PracticeStartingPointX[counter] := 32.630001
PracticeStartingPointY[counter] := 6.5176454
counter := 2
PracticeLineX[counter] := 5.7739348
PracticeLineY[counter] := 30
PracticeStartingPointX[counter] := 3.98
PracticeStartingPointY[counter] := 9.3208609
End of if
InitialVideo
In this survey you are asked to make choices involving risk. The video below explains in more details what you are supposed to do. A considerable amount of money is at stake so pay careful attention to the instructions.


If you cannot view the video you can read the instructions by clicking here.
Loop from 1 to 2
Group of questions presented on the same screen
qdecision_practice (decision moduleq)
PracticeSelectedPointX
PracticeSelectedPointY
End of group of questions
End of loop
SecondaryVideo
The video below explains how your earnings will be determined based on the choices you make. After watching the video you will be ready to start making these choices.


If you cannot view the video you can read the instructions by clicking here.
PracticeText
We will now ask you to make 25 decisions similar to the one you just practiced. Think carefully about each one of these decisions because any one of them may be the one selected for payment.

Notice that there is no wrong or right choice. You should decide how much you want to receive if the coin comes up heads and how much you want to receive if the coin comes up tails. The chances of the coin coming up heads or tails are the same.

Please note that it may take some time for the next screen to load. Please just wait until the first decision screen appears and refrain from refreshing the browser window.
counter := 1
IF StartingPointX[1] = EMPTY THEN
Loop from 1 to INTRODUCTION
IF randNum = 1 THEN
LineX[counter] := mt_rand ( 5 , 50 )
IF LineX[counter] < 25 THEN
LineY[counter] := mt_rand(25,50)
Else
LineY[counter] := mt_rand(5,50)
End of if
Else
LineY[counter] := mt_rand ( 5 , 50 )
IF LineY[counter] < 25 THEN
LineX[counter] := mt_rand(25,50)
Else
LineX[counter] := mt_rand(5,50)
End of if
End of if
StartingPointX[counter] := mt_rand(LineX[counter] - 3 , LineX[counter] + 3)
DX := (LineX[counter] + 3) - (LineX[counter] - 3)
DY := (LineY[counter] - 3) - (LineY[counter] + 3)
StartingPointY[counter] := (LineY[counter] + 3 ) + DY * (StartingPointX[counter] - LineX[counter] - 3) / DX;
End of loop
End of if
Loop from 1 to INTRODUCTION
Group of questions presented on the same screen
qdecision (decision moduleq)
SelectedPointX
SelectedPointY
End of group of questions
End of loop
IF problemSelected = EMPTY THEN
problemSelected := mt_rand(1,25)
End of if
ChooseHeads := round(SelectedPointY[problemSelected], 2)
ChooseTails := round(SelectedPointX[problemSelected], 2)
IF coinToss = EMPTY THEN
coinToss:= mt_rand(1,2)
End of if
Fill code of question 'CoinVal' executed
Fill code of question 'FLCoinOutput' executed
Fill code of question 'FLCoinToss' executed
IF FinalPayment = EMPTY THEN
IF coinToss = 1 THEN
FinalPayment := ChooseHeads
Else
FinalPayment := ChooseTails
End of if
End of if
PT001 (Payment info)
Thank you for participating in the experiment.

We will now randomly select a choice for payment.


PT002 (coin toss)


PreFinal
The next decision-problem is meant to test how well the participants in this experiment are able to implement their desired choices using the mouse.

By completing this question, you will help us to better understand the way respondents interact with the computer interface.

Your choice in this question will NOT reduce the payment amount shown in the previous screen.

Rather, you will receive an additional $1 in compensation if you get within $0.50 of the allocation we will indicate.
FinalStartingPointX[1]:=25
FinalStartingPointY[1]:=25
FinalLineX[1]:=50
FinalLineY[1]:=50
Group of questions presented on the same screen
qdecision_final (decision moduleq)
FinalSelectedPointX
FinalSelectedPointY
End of group of questions
IF FinalSelectedPointY[1] > 31.49 AND FinalSelectedPointY[1] < 32.51 THEN
FinalPayment := FinalPayment + 1.00
End of if
ira_keog (has IRA or KEOGH)
Do you currently have any money or assets that are held in an Individual Retirement Account, that is, in an IRA or KEOGH account?
1 Yes
2 Previously had accounts, not now
3 No
4 Don't know
IF ira_keog = 1 THEN
invested_stocks (invested in stocks or mutual funds)
Is any of that (IRA/KEOGH) invested in stocks or mutual funds?
1 Yes
2 No
3 Don't know
End of if
have_stock_mutual
Aside from anything you have already told me about, do you have any shares of stock or stock mutual funds?
1 Yes
2 No
3 Don't know
CS_001 (HOW PLEASANT INTERVIEW)
Could you tell us how interesting or uninteresting you found the questions in this interview?
1 Very interesting
2 Interesting
3 Neither interesting nor uninteresting
4 Uninteresting
5 Very uninteresting
CS_003 (comments)
Do you have any other comments on the interview? Please type these in the box below.(If you have no comments, please click next to complete this survey.)
STRING
IF Paid = EMPTY THEN
dummy := payUp()
Paid := 1
End of if