Skip to contents

Takes a tibble from process_join_counts_and_links. Deviation between count volumes and linkstats is calculated and categorized (i.e. deviation of 1.2 means 20 percent more DTV in MATSim than in counts). If parameter 'aggr' is set to TRUE, data will be aggregated for each run and link type. Can be used to visualize model quality by link type and to compare several runs.

Usage

process_get_dtv_estimation_quality(
  joined_frame,
  aggr = TRUE,
  ll = ~x * 0.8 - 200,
  ul = ~x * 1.2 + 200
)

Arguments

joined_frame

A tibble from process_join_counts_and_links

aggr

Boolean, if categorized data should returned aggregated, default is TRUE.

ll

Formula to calculate lower limit of the quality label 'exact', default = 0.8*x - 200

ul

Formula to calculate lower limit of the quality label 'exact', default = 1.2*x + 200

Value

A long-format tibble, which contains estimation quality for each scenario and link type, if aggr is FALSE disaggregated data is returned

Details

Estimation quality is determined by the 'cut' function, limits for the label 'exact' can be adjusted by tuning the parameters 'll' (lower limit) and 'ul' (upper limit)