Skip to contents

Log-link prediction exp(b0 + b1 x1) (equations 6.1 to 6.4), incidence rate ratio exp(b), offset prediction (6.7), quasi-Poisson theta and adjusted standard error, and the negative binomial variance mu plus mu squared alpha (6.8). Mirrors ca6e1 to ca6e8.

Usage

morie_count_glm(
  b0 = 0,
  b1 = 0,
  x1 = 0,
  exposure = 1,
  y = NULL,
  yhat = NULL,
  k = 1,
  se = NA,
  mu = NA,
  alpha = NA
)

Arguments

b0, b1, x1

Model terms.

exposure

Offset exposure.

y, yhat

Observed and fitted counts for theta.

k

Predictors.

se

Poisson standard error.

mu, alpha

Negative binomial terms.

Value

List of the named quantities.

Examples

morie_count_glm()
#> $predict
#> [1] 1
#> 
#> $irr
#> [1] 1
#> 
#> $predict_offset
#> [1] 1
#>