ita_prepare_covar_hc_access: Prepare covariate: access to healthcare facility

Description Usage Arguments Value

Description

Covariate-specific prep function for the average person's travel time to the nearest healthcare facility (by motor vehicle).

Usage

1
2
3
4
5
6
7
8
ita_prepare_covar_hc_access(
  covar_fp,
  model_years,
  location_table,
  pop_raster,
  polys_sf,
  projection
)

Arguments

covar_fp

Filepath to the raw covariate

model_years

Vector of years to consider for modeling

location_table

Location code merge table for Italy

pop_raster

[optional] Population rasterBrick object, with one layer per modeling year. Only used to prepare raster covariates, default NULL.

polys_sf

[optional] Polygon boundaries

projection

[optional] Character vector giving the proj4 CRS definition. Example: "+proj=utm +zone=32 +datum=WGS84 +units=m +no_defs"

Value

A list of two items: - "prepped_covar": data.table containing the prepped covariate - "covar_indices": Vector of identifiers that should be used to merge onto the modeling dataset. The prepared covariate dataset should only include identifier columns and the covariate value, specified by the covariate name


njhenry/covidemr documentation built on Feb. 2, 2022, 2:31 a.m.