Common choice is log(travel_time). If `distance` is provided, you can optionally model time-per-distance.
prep_travel_time(
travel_time,
distance = NULL,
per_distance = FALSE,
transform = c("log", "identity"),
eps = 1e-06
)list with y (transformed), meta (transform info).
numeric vector (e.g., seconds).
optional numeric vector of same length (e.g., meters).
logical; if TRUE and distance provided, model travel_time / distance.
character; currently supports "log" or "identity".
small positive constant added before log to avoid log(0).