long_data
|
A data frame in long format (one row per participant-arm-month), as produced by expand_to_long().
|
covariate_cols
|
Character vector of column names to include as additional baseline adjustment terms. Set to NULL for no adjustment. Default: NULL.
|
weight_col
|
Name of the column containing IPW weights. Set to NULL for unweighted estimation. Default: “wp99”.
|
outcome_col
|
Name of the negative-control outcome column, as produced by expand_to_long(). Default: “nc_dead_t1”.
|
arm_col
|
Name of the trial arm column. Default: “arm”.
|
month_col
|
Name of the 0-indexed month-from-entry column. Default: “month2”.
|
id_col
|
Name of the participant identifier column. Default: “id”.
|
cluster_id_col
|
Name of the column to use for clustering standard errors. When non-NULL and the sandwich package is available, cluster-robust confidence intervals are returned. Defaults to id_col.
|
max_month
|
Maximum month included in the model. Rows beyond this month are excluded. Default: 95L.
|
rcs_knots
|
Numeric vector with at least 3 elements specifying the knots for the restricted cubic spline on time: the first element is the left boundary knot, the last element is the right boundary knot, and any middle elements are interior knots. Must have at least one interior knot. Default: c(6, 48, 72) (one interior knot at month 48).
|
null_value
|
Odds ratio implying no arm effect. Default: 1.
|