Skip to contents

Returns the standardized filename for a model type and format.

Usage

get_model_filename(model_type, format)

Arguments

model_type

Character. One of: "agnostic", "full", "margin", "stage1", "stage2"

format

Character. Model format:

  • For outcome models: "shortform" or "longform"

  • For margin/stage models: "t20", "odi", or "test"

Value

Character. The model filename (not full path).

Examples

get_model_filename("agnostic", "shortform")
#> [1] "agnostic_outcome_shortform.ubj"
# Returns: "agnostic_outcome_shortform.ubj"

get_model_filename("margin", "t20")
#> [1] "t20_margin_model.ubj"
# Returns: "t20_margin_model.ubj"