Fits a linear model to trajectories returned from 'nowcasting_inla()' within a given window. The default is 3 weeks. If 'end.week' is missing uses the maximum date in 'trajectories'.
Examples
# Loading Belo Horizonte SARI dataset
data(sragBH)
now <- nowcasting_inla(dataset = sragBH,
date_onset = DT_SIN_PRI,
date_report = DT_DIGITA,
trajectories = TRUE,
silent = TRUE)
#> Joining with `by = join_by(date_onset)`
#> Joining with `by = join_by(date_onset, delay, Time)`
slope.estimate.quant(trajectories = now$trajectories)
#> Warning: Using max. date in 'trajectories' as 'end.week'
#> [1] -0.5