I would like to do a CUSUM test for the regression parameters of a nonlinear regression model to analyze possible parameters variations. For linear regression models the CUSUM test is based on the cumulative sums:
$$W_r= \sum^{r}_{t=k-1} \frac{w_t}{s}, r = k + 1,...,n,$$ where $s^2$ is the OLS estimate of the variance of the residuals and $w_t$ is a recursive residuals that can be estimates as follows:
$$w_t = \frac{y_t-x_t'b_{t-1}}{\sqrt{v_t}},$$
where $v_t = (1 + x_{t}'A_{t-1}x_{t})$ (which is the variance of the forecast errors), $A_t = (X_{t}'X_{t})^{-1}$ and $b_{t-1}$ the OLS estimator of $\beta$ using observations $1,...,t-1$. For nonlinear regression:
- I could replace $s^2$ with the Nonlinear Least Squares (NLS) estimate of the variance of the residuals
- Replace $x_t'b_{t-1}$ with the nonlinear function $f(x_{t},B_{t-1})$ where $B_{t-1}$ is the NLS estimate of $\beta$ using observations $1,...,t-1$
However, I do not see how I could estimate $v_t$ in the nonlinear regression context. I have also not found literature in which they discuss the use of CUSUM in a nonlinear regression context. How could I use the CUSUM test for a nonlinear regression model?