cdgd0_pa {cdgd}R Documentation

Perform unconditional decomposition via parametric models

Description

Perform unconditional decomposition via parametric models

Usage

cdgd0_pa(Y, D, G, X, data, alpha = 0.05, trim = 0)

Arguments

Y

Outcome. The name of a numeric variable (can be binary and take values of 0 and 1).

D

Treatment status. The name of a binary numeric variable taking values of 0 and 1.

G

Advantaged group membership. The name of a binary numeric variable taking values of 0 and 1.

X

Confounders. A vector of variable names.

data

A data frame.

alpha

1-alpha confidence interval.

trim

Threshold for trimming the propensity score. When trim=a, individuals with propensity scores lower than a or higher than 1-a will be dropped.

Value

A list of estimates.

Examples

data(exp_data)

results <- cdgd0_pa(
Y="outcome",
D="treatment",
G="group_a",
X=c("Q","confounder"),
data=exp_data)

results[[1]]

[Package cdgd version 0.3.5 Index]