Compartmental models use differential equations to describe the rate of movement between compartments. For example, the SIR model includes equations for the rates at which susceptible individuals become infected and infected individuals recover. These equations are based on parameters such as the transmission rate and recovery rate.