Description Usage Arguments Details Value
View source: R/GLM_gradient_constant.R
Implement a first-order solution for the GLM maximum likelihood problem using only gradient information, avoiding the Hessian matrix. Constant step size.
1 | GLM_gradient_constant(X, Y, mu_fun, maxit = 1e+05, tol = 1e-05)
|
X |
The design matrix |
Y |
Response variable |
mu_fun |
A function to use eta get mu |
maxit |
The maximum iteration times to allow the loop to exit, set default as 1e5 |
tol |
The difference between previous beta and new beta to allow the loop to exit, set default as 1e-5. |
The code is adapted from lecture notes.
A list of beta coefficients.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.