An Example

 

Here is a complete example of programming a simple process model, experiment, and fitting the model to the data (using Matlab) from Prof. Kruschke. It uses Anderson's (1965) averaging model of information integration.