Skip to contents

Returns the full path to a model file in the models directory.

Usage

get_model_path(model_type, format, models_dir = NULL)

Arguments

model_type

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

format

Character. Model format (see get_model_filename).

models_dir

Character. Optional models directory. If NULL, uses get_models_dir().

Value

Character. Full path to the model file.

Examples

if (FALSE) { # \dontrun{
get_model_path("agnostic", "shortform")
# Returns: "/path/to/bouncerdata/models/agnostic_outcome_shortform.ubj"
} # }