Skip to contents

Allows user to provide an input table in CSV format to iteratively calculate results using get_rates_and_fractions() with the output returned in one row per set of inputs.

Usage

batch_rates_and_fractions(dat, inputs)

Arguments

dat

Processed CHAMPS dataset.

inputs

Path to a csv file specifying each scenario to run with columns 'site','catchment', 'age', 'condition', 'icd10_regex', 'causal_chain'. The columns 'age', 'condition' ,'site', and 'catchment' can have multiple values separated by a semicolon. These variables specify parameters that will be passed to get_rates_and_fractions() Alternately, this can be a list of named lists of parameters with the same names of the csv file. See examples below.