fit.gamma.IWLS | R Documentation |
Use IWLS method fit the gamma model which is an example of generalized linear model.
fit.gamma.IWLS(x, y, weight = NULL, start = NULL, lambda = 0)
x |
Input matrix, of dimension n \times p; each row is an observation vector and each column is a predictor/feature/variable. |
y |
The response variable, of |
weight |
Observation weights. When |
start |
the start point of fitness. |
lambda |
A single lambda value for L2 regularized. Default is 0. |
Intercept and linear coefficient.
## Not run: n <- 1000 p <- 10 dataset <- generate.data(n, p, p,family = "gamma", seed = 1) coef <- fit.gamma.IWLS(dataset[["x"]],dataset[["y"]]) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.