Skip to contents

Wraps jmvcore::asFormula with the function allow-list extended to cover common survival modelling helpers (Surv, strata, cluster, frailty, tt, pspline, ns, bs, I, const, finegray). Use this instead of base stats::as.formula() in survival / Cox / Fine-Gray paths so the formula goes through jmvcore's allow-listed parser.

Usage

.asSurvivalFormula(x)

Arguments

x

A character formula string (e.g. "survival::Surv(t, d) ~ x").

Value

A parsed formula object.