residuals-fitsir-method: Find residuals between the fit and the data

Description Usage Arguments Details Examples

Description

Find residuals between the fit and the data

Usage

1
2
## S4 method for signature 'fitsir'
residuals(object, type = c("pearson", "raw"))

Arguments

object

fitsir object

type

type of residuals. Default is set to pearson residuals.

Details

pearson returns (X_i - μ_i)^2/μ_i and raw retrns X_i -μ_i, where X_i is the observed counts and μ_i is the expected coutns.

Examples

1
2
3
4
harbin2 <- setNames(harbin, c("times", "count"))
ss <- startfun(harbin2, type="death")
ff <- fitsir(harbin2, start=ss, type="death", method="BFGS")
residuals(ff)

bbolker/fitsir documentation built on June 4, 2019, 8:28 a.m.