A random walk allows process deviations to persist and change from one year to the next, independently for each age or age block. There is no tendency to return to a mean and no correlation between ages.
Value
dprocess_rw() returns the summed log density of increments;
rprocess_rw() returns a matrix with the dimensions and names of x.
Details
For a year by age matrix x, increments
x[y, a] - x[y - 1, a] are independent Normal variables with mean zero
and standard deviation sd. The first row has no increment density.
rprocess_rw() keeps that starting row and simulates subsequent rows
conditionally. In TAM these helpers act on process deviations from the
existing mean surfaces (F/M) or cohort predictions (N).