Inverse the hessian and multiply it by the score
hessian_solver(par, XX_band, Xy, pen, w, diff)
The parameter vector
The matrix \(X^T X\) where X
is the design matrix. This argument is given
in the form of a band matrix, i.e., successive columns represent superdiagonals.
The vector of currently estimated points \(X^T y\), where \(y\) is the y-coordinate of the data.
Positive penalty constant.
Vector of weights. Has to be of length
The order of the differences of the parameter. Equals degree + 1
in adaptive spline regression.
The solution of the linear system: $$(X^T X + pen D^T diag(w) D) ^ {-1} X^T y - par$$