drift_set: Drift set utilities

drift_setR Documentation

Drift set utilities

Description

make_drift_set builds a regular grid of drift values from a range and step in HR units, optionally including the null drift (HR = 1). make_drift_set_from_values converts a user-supplied set of drift HR values to log-HR.

Usage

make_drift_set(drift_hr_range = c(0.8, 1.2), by_hr = 0.05, include_zero = TRUE)

make_drift_set_from_values(drift_hr_values, include_zero = TRUE)

Arguments

drift_hr_range

Numeric vector of length 2 giving the inclusive range of drift HR values (e.g. c(0.8, 1.2)).

by_hr

Step size in HR units.

include_zero

If TRUE, ensure the null drift (\delta = 0) is included.

drift_hr_values

Numeric vector of drift HR values.

Value

A numeric vector of drift values on the log-HR scale.


fdb documentation built on Oct. 4, 2026, 5:07 p.m.