Constructs a daily schedule of SMC (Seasonal Malaria Chemoprevention) coverage and decay values over a specified time period. Missing values are filled forward using the last observed non-zero coverage, and decay is applied according to a specified exponential decay constant.
Arguments
- smc_cov
A data frame with at least two columns:
date_start
: ADate
or character vector indicating the start of coverage.coverage
: Numeric values indicating the coverage on each date.
- months_30_days
Logical. If
TRUE
, generates a synthetic 360-day calendar (12 months of 30 days). Defaults toFALSE
.- years
A numeric vector of length 2 specifying the range of years to include (e.g.,
c(2014, 2022)
).- const
A numeric scalar for the exponential decay constant (default:
-0.1806
).
Value
A data frame with the following columns:
dates
: A daily sequence of dates across the specified time range.SMC
: Binary indicator (1 if SMC applied on that day, 0 otherwise).cov
: Propagated SMC coverage values after filling and masking non-SMC months.decay
: Daily decay values calculated using the specified constant.