paper function

An example of a function to calculate the effect on the location that depends on previous outcome in an mreg model