cifplot(), cifpanel(), and cifcurve().These arguments are shared by cifplot(), cifpanel(), and cifcurve().
A data frame containing variables in the formula.
Optional name of the weight variable in data. Weights must be nonnegative.
Character string; one of "weighted", "unweighted", or "ess".
Controls which risk set size is returned in $n.risk without affecting estimates
or standard errors. (default "weighted").
Optional character string giving a logical condition to subset
data (default NULL).
A function specifying the action to take on missing values (default na.omit).
Character string specifying the type of time-to-event outcome.
One of "survival" (Kaplan-Meier) or "competing-risk" (Aalen-Johansen).
If NULL (default), the function automatically infers the outcome type from the data:
if the event variable has more than two unique levels, "competing-risk" is assumed;
otherwise, "survival" is used. You can also use abbreviations such as "S" or "C".
Mixed or ambiguous inputs (e.g., c("S", "C")) trigger automatic detection based on the event coding.
Integer code of the event of interest (default 1).
Integer code of the competing risk (default 2).
Integer code of censoring (default 0).
Character string specifying the method for SEs and CIs used internally.
For "survival" without weights, choose one of "greenwood" (default), "tsiatis", or "if".
For "competing-risk" without weights, choose one of "delta" (default), "aalen", or "if".
SEs and CIs based on influence functions ("if") is recommended for weighted analysis.
Character specifying the method of transformation for CIs
used internally (default arcsine-square root).
Numeric two-sided level of CIs (default 0.95).