is_surv_outcome: Check if outcome is a Surv() expression

is_surv_outcomeR Documentation

Check if outcome is a Surv() expression

Description

Tests whether an outcome specification string represents a survival outcome by checking for the Surv() function pattern. Used to route model fitting to Cox proportional hazards methods.

Usage

is_surv_outcome(outcome)

Arguments

outcome

Character string of the outcome specification.

Value

Logical TRUE if outcome starts with "Surv(", FALSE otherwise.


summata documentation built on May 7, 2026, 5:07 p.m.