This depository contains the code to run PASOM--An agent-based model simulating science attitudes. Outputs from the simulations were used for the paper, “Toxic behaviour facilitates echo chamber formation: An agent-based modelling simulation of science attitudes based on Spiral of Silence Theory” submitted to Plos One.