Learn R Programming

WH (version 2.0.0)

compute_res_deviance: Deviance residuals for Poisson GLM

Description

Deviance residuals for Poisson GLM

Usage

compute_res_deviance(D, D_hat)

Value

A vector or matrix (depending on the input type, will be a matrix if at least one of the input is) containing the deviance residuals

Arguments

D

Vector or matrix containing the number of observed events

D_hat

Vector or matrix containing the number of predicted events