fit_ar {excessmort}R Documentation

Fit an ar model to residuals from expected counts

Description

Helper function to estimate autoregressive mode

Usage

fit_ar(counts, control.dates = NULL, order.max = 5, aic = FALSE, plot = FALSE)

Arguments

counts

Output from 'compute_excpected'

control.dates

Dates to use to estimate covariance

order.max

Maximum order of autoregressive process

aic

Logical that determines if AIC is used

plot

logical that determines if an autocorrelation plot is generated for exploration purposes


[Package excessmort version 0.7.0 Index]