View source: R/analysis_utils.R
gcomp_responder | R Documentation |
Performs logistic regression and estimates marginal effects for binary outcomes.
gcomp_responder(
data,
vars,
reference_levels = NULL,
var_method = "Ge",
type = "HC0",
contrast = "diff"
)
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"). |
A named list containing estimates and standard errors for treatment comparisons and within-arm means.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.