Java code for Qualtrics

Job ID: 36645141

Budget: £20 – £250 GBP

Java code to use in Qualtrics/Smartiqs.

Survey where subjects roll a four sided die for a certain number of periods and they have to report the outcome. The answers are are integer numbers between 1 and 4 and they are saved in an embedded data variable.

The code needs to take the values from the comma separated variable and plot them into a histogram. The histogram should give the frequencies with which each outcome has been reported and on top of that a reference line showing the expected frequency of the random die roll.