A matlab script that runs a gambling game for participants, collects their inputs, and performs statistical analysis all in one go.
- Have participants run the paradigm script : “value_assessment.m”
- Their profiles will be saved into a .mat file when the experiment is over for them
- Run the data analysis script: “data_analysis.m”
- It will automatically load the save profile of both groups, sort them, check if the sample sizes are equal, then conduct a paired sample t-test on the group. Finally, it will tell you if the two groups performed statistically significantly different from each other.