Unadjusted Differential Variance Inference
unadjdiffvar.Rdunadjdiffvar() infers the differential variance of two
treatments using an unadjusted estimator.
Usage
unadjdiffvar(
data_tbl,
estimand_type = "absolute",
confidence_level = 0.95,
treatment_var_name,
propensity_score_var_name = NULL,
outcome_var_name
)Arguments
- data_tbl
A
data.frameortibble.- estimand_type
A
characterindicating whether to estimate the absolute ("absolute") or relative ("relative") differential variance.- confidence_level
A
numericbetween $0.1$ and $0.99$ providing the confidence level used to compute confidence intervals. Defaults to0.95.- treatment_var_name
A
characterproviding the column name of the treatment assignment indicator stored indata_tbl.- propensity_score_var_name
An optional
characterproviding the column name of the treatment assignment indicator stored indata_tbl. Defaults toNULL. See the Details section for more information.- outcome_var_name
A
characterproviding the column name of the outcome variable stored indata_tbl.
Value
A one-row tibble containing the following columns:
estimand: The scale of the differential variance estimandestimate: The differential variance estimatese: The estimator's standard errorci_low: The lower bound of the Wald-type confidence intervalci_high: The upper bound of the Wald-type confidence intervalp_value: The p-value of a two-sided test using the z-score of the differential variance estimate
Details
Under standard causal identifiability conditions — namely,
consistency, positivity, and full exchangeability — unadjdiffvar()
performs inference on the differential variance of the potential outcomes.
Differential variance is defined on the absolute scale as the difference in
potential outcome variances of two treatments. On the relative scale,
differential variance is defined as the ratio of the potential outcome
variances. The scale of the differential variance estimated by
unadjdiffvar() is specified by the estimand_type parameter.
unadjdiffvar() assumes that the data in data_tbl are generated
according to a parallel group study design with a binary treatment variable
and a continuous outcome. Treatment is assumed to be assigned at random. If
the treatment assignment probabilities are known, such as in a randomized
controlled trial, then these may be passed to the estimator using the
propensity_score_var_name argument. If there are (un)measured
confounders, this estimator will be biased.