Description Usage Arguments Value Examples
weighted residual deviance
1 | residualDeviance(act,pred,family,p=NULL,wt=NULL)
|
act |
Numeric. Actual |
pred |
Numeric. Predicted or fitted. |
family |
Character. One of "poisson","gamma","normal","tweedie","normal","wald",or "inverse.gaussian". |
p |
variance function power when 'family' = "tweedie" |
wt |
Numeric vector. Weight of each records. |
residual deviance numeric vector
1 2 3 | act = rpois(100,1)
pred = act + abs(rnorm(100))
residualDeviance(act,pred,family = "poisson")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.