dot-resolve_outcome: Resolve the outcome formula against the analysis-stage data

.resolve_outcomeR Documentation

Resolve the outcome formula against the analysis-stage data

Description

Checks that data lines up row-for-row with the baseline data the weights were fit on (same row count; any column the two share must agree), and makes Surv() resolve without the user attaching survival.

Usage

.resolve_outcome(outcome, data, object)

Arguments

outcome

Outcome formula, as passed to sbw_estimate().

data

Analysis-stage data frame, or NULL to use object$data.

object

The sbw_fit.

Value

The model response: a numeric vector, or a Surv matrix.


sbwadjust documentation built on Oct. 10, 2026, 5:08 p.m.