Wrapper function that creates a GBSG DGM and generates a standardized output file path for saving results.
get_dgm_with_output(
model_harm,
n,
k_treat = 1,
target_hr_harm = NULL,
cens_type = "weibull",
out_dir = NULL,
file_prefix = "sim",
file_suffix = "",
include_hr_in_name = FALSE,
verbose = FALSE,
...
)List with components:
The gbsg_dgm object
Character path to output file (NULL if out_dir is NULL)
The k_inter value used (either calibrated or default)
Character. Model type ("alt" or "null")
Integer. Planned sample size (for filename)
Numeric. Treatment effect multiplier
Numeric. Target HR for harm subgroup (used for calibration when model = "alt")
Character. Censoring type
Character. Output directory path. If NULL, no file path is generated
Character. Prefix for output filename
Character. Suffix for output filename
Logical. Include achieved HR in filename. Default: FALSE
Logical. Print diagnostic information. Default: FALSE
Additional arguments passed to create_gbsg_dgm