Prints a human-readable report for an object of class "fitted_onlinesurr" returned by fit.surr. The report includes marginal and conditional treatment-effect estimates at a selected time point (or cumulatively up to that time), an estimate of the LPTE/CPTE, and a time-homogeneity test of the LPTE.
Usage
# S3 method for class 'fitted_onlinesurr'
summary(object, t = object$T, cumulative = T, signif.level = 0.05, ...)Arguments
- object
A
"fitted_onlinesurr"object.- t
Integer time index at which to evaluate treatment effects and the PTE. If
cumulative = TRUE, effects are aggregated over times1:t. Ifcumulative = FALSE, effects are evaluated at timetonly.- cumulative
Logical; if
TRUE(default), the report uses cumulative (up to timet) marginal and conditional treatment effects. IfFALSE, the report uses the effects at timetonly.- signif.level
Numeric in \((0,1)\) giving the significance level for the time-homogeneity test that is reported (e.g., via
time_homo_test).- ...
Additional arguments passed to downstream summary/print utilities (if any).
Details
The "fitted_onlinesurr" object stores point estimates and bootstrap samples for marginal and surrogate-adjusted (conditional) models in object$Marginal and object$Conditional.