read.parameters: Get city-level alert parameters for the infodengue pipeline.

Description Usage Arguments Value Examples

View source: R/utility_tools.R

Description

Read the alert parameters for a set of cities from the database, to be used in the infodengue pipeline. Currently, the parameters are: "limiar_preseason" (pre-season incidence threshold calculated using MEM), "limiar_posseason" (pos-season incidence threshold), "limiar_epidemico"(epidemic threshold), "varcli" (name of the critical meteorological variable), "clicrit" (critical value of the meteorological variable), "cid10", "codmodelo" (name of the heuristic decision model, see serCriteria()). These parameters are specified when the city is initiated in the pipeline.

Usage

1
read.parameters(cities, cid10 = "A90", datasource = con)

Arguments

cities

cities' geocodes. Tip: find them using getCidades().

cid10

Dengue = "A90" (default), Chik = "A92.0", Zika = "A92.8"

datasource

SQL connection to the database

Value

dataframe with all parameters

Examples

1
2
3
read.parameters(cities = 3118601, cid10 = "A90")
cid <- getCidades(regional = "Norte",uf = "Rio de Janeiro")
read.parameters(cities = cid$municipio_geocodigo, cid10 = "A90")

claudia-codeco/AlertTools documentation built on Aug. 12, 2021, 9:58 a.m.