hessian_solver | R Documentation |
Inverse the hessian and multiply it by the score
hessian_solver(par, XX_band, Xy, pen, w, diff)
par |
The parameter vector |
XX_band |
The matrix X^T X where |
Xy |
The vector of currently estimated points X^T y, where y is the y-coordinate of the data. |
pen |
Positive penalty constant. |
w |
Vector of weights. Has to be of length |
diff |
The order of the differences of the parameter. Equals |
The solution of the linear system:
(X^T X + pen D^T diag(w) D) ^ {-1} X^T y - par
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.