checkResidualProcess function

Check the residual process of a fitted twinSIR or twinstim