Helper function to compute excess deaths statistics for a
excess_stats(
start,
end,
obs,
mu,
cov,
pop,
frequency,
fhat = NULL,
X = NULL,
betacov = NULL
)First day of interval
Last day of interval
Observed counts
Expected counts
Covariance matrix for percent change
Population size
Observations per year
Estimated percent increase
Design matrix used to estimate fhat
Covariance matrix for parameter estimates used to estimate fhat