Project repository for the paper, "People can use the placement of objects to infer communicative goals" (link).
analysis: Contains the R code to generate all results and figures reported in the paper (see our OSF repository for a slimmer version of this same code)cache: Empty by default; used for storing the model predictions from the intermediate agent modelscluster: Contains the terminal commands for generating the model predictions for each agentdata: Contains the raw and processed participant data and model predictionsexperiments: Contains the web code for generating the experimentsmodels: Contains the Python code for generating model predictions given experiment parametersstimuli: Contains the stimuli used in the experimentsutils: Contains a Bash script to clean leftover TeX files after generating stimuli
The experiment folders use internal names. These internal names map onto the experiment names in the paper as follows:
decider_0: Experiment 3adecider_1: Experiment 2decider_2: Experiment 3cobserver_0: Experiment 1observer_1: Experiment 1 (replication)symbols_1: Experiment 4tsimane_0: Experiment 3b
To run the analysis code, you will need R 4.1.2 (or higher) and R Markdown 2.11 (or higher). To run the model code, you will need any version of Python 3, numpy 1.22.0 (or higher), matplotlib 3.5.0 (or higher), and a terminal capable of using Bash.
cluster contains a text file for each level of the recursive model, each with the list of terminal commands for caching the model predictions for that agent inside of cache. The text files should be run in the following order:
decider_no_ToM.txtenforcer_no_ToM.txtdecider_ToM.txtenforcer_ToM.txt
Within each text file, these commands can be run independently and in parallel. Once you have the cached model predictions for all agents, you can run the commands within the following text files to quickly generate model predictions for some k-level agent (using the cached model predictions for the (k-1)-level agents).
evaluate_decider.txtevaluate_enforcer.txtevaluate_observer.txt