Description Usage Arguments Value
This function computes the log-likelihood of a Tweedie regression model given a data set. It also provides the MSE, RMSE and NRMSE.
1 | scores.trm(beta, phi, p, Y, X)
|
beta |
a vector of regression coefficients. |
phi |
the dispersion parameter of the Tweedie regression model. |
p |
the power parameter of the Tweedie regression model. |
Y |
a vector of responses. |
X |
a matrix of covariates (including a vector of ones). |
This function returns a named list consisting of the Tweedie regression model scores: Mean Squared Error (MSE), Root Mean Squared Error (RMSE), Normalized Root Mean Squared Error (NRMSE) and the log-likelihood (ll).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.