gcomp_responder {rbmiUtils} | R Documentation |
G-computation Analysis for a Single Visit
Description
Performs logistic regression and estimates marginal effects for binary outcomes.
Usage
gcomp_responder(
data,
vars,
reference_levels = NULL,
var_method = "Ge",
type = "HC0",
contrast = "diff"
)
Arguments
data |
A data.frame with one visit of data. |
vars |
A list containing |
reference_levels |
Optional vector specifying reference level(s) of the treatment factor. |
var_method |
Marginal variance estimation method (default: "Ge"). |
type |
Type of robust variance estimator (default: "HC0"). |
contrast |
Type of contrast to compute (default: "diff"). |
Value
A named list containing estimates and standard errors for treatment comparisons and within-arm means.
[Package rbmiUtils version 0.1.4 Index]