Skip to contents

This function provides an estimate of the Average Treatment Effect (ATE) using outcomes corrected for unmeasured confounding via a sensitivity function.

Arguments in the ellipsis are 'keyword arguments' and are passed to the sensitivity function `sf`.

Usage

causens(trt_model, outcome, method, data, ...)

Arguments

trt_model

The treatment model object as a formula or fitted glm.

outcome

The name of the outcome variable.

method

The method to use for sensitivity analysis. Currently, "Li" and "Bayesian" are supported.

data

A data frame containing the exposure, outcome, and confounder variables.

...

Additional arguments to be passed to the sensitivity function.

Value

A point estimate of the corrected ATE.