bayesnowcasting: Correct incidence data with notification delay (nowcasting).

View source: R/adjust_incidence_functions.R

bayesnowcastingR Documentation

Correct incidence data with notification delay (nowcasting).

Description

This function estimate the Bayesian nowcast (new version)

Usage

bayesnowcasting(d, Dmax = 10, nowSE, nweeks = 50, interacao = FALSE, tweet = F)

Arguments

Dmax

for the "bayesian" method. Maximum number of weeks that is nowcasted

nowSE

week of the nowcasting (ex. 202110).

nweeks

number of weeks used for model calibration, default is 50.

interacao

TRUE (default) to include in the model the delay-time interaction term

tweet

FALSE (default). TRUE to include tweet in the model

obj

data.frame with individual cases, containing columns municipio_geocodigo, dt_notific, dt_sin_pri, dt_digita

Value

data.frame with median and 95percent confidence interval for the predicted cases-to-be-notified)

Examples

dados <- getdelaydata(cities=3304557, nyears=1, cid10="A90", 
lastday = as.Date("2024-03-23"), datasource=con)  # Not run without connection
resfitcIsT<-bayesnowcasting(dados, nowSE = 202412)

AlertaDengue/AlertTools documentation built on Nov. 27, 2024, 11:55 p.m.