Description Usage Arguments Value Examples
This is an implementation of the maximum likelihood method to estimate the parameters of Tweedie regression model.
1 |
data |
a data frame containing the variables in the model. |
formula |
an object of class "formula" (or one that can be coerced to that class): a symbolic description of the model to be fitted. |
pgrid |
a numeric vector containing the values among which the power parameter p is chosen in order to maximize the model's log-likelihood. If the power parameter is knonw, pgrid will contain a single value. |
This function returns a named list consisting of the Tweedie regression parameters ("p" : the power parameter, "phi": the dispersion parameter, "beta" : the regression coefficients and "glm": a regression object as returned by the glm or lm functions.)
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.