Process raw epidemiological data for the GP model
data_process.RdValidates and prepares input data into the shape consumed by
infer_kernel_params() and gp_predict(): it completes the site-by-time
grid, drops sites that cannot be modelled, assigns a factor site id, and
returns the observations and coordinates as separate, ready-to-use frames.
Arguments
- data
A data frame containing site identifiers, time
t, countsn, and coordinateslatandlon.- ...
Bare (unquoted) column names that jointly identify a site, e.g.
data_process(raw, region, facility_name).- drop_zero
Logical; passed to
data_missing()– also drop sites whose observed counts sum to zero (defaultFALSE).