fit_ar: Fit an ar model to residuals from expected counts

Description Usage Arguments

View source: R/fit_ar.R

Description

Helper function to estimate autoregressive mode

Usage

1
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


excessmort documentation built on Oct. 11, 2021, 9:06 a.m.