Skip to contents

Checks whether the covariates used in a model match any of the DAG-implied minimal sufficient adjustment sets.

Usage

check_adjustment(
  model_covariates,
  exposure = "cytogenetic_risk",
  outcome = "overall_survival",
  dag = NULL
)

Arguments

model_covariates

Character vector of covariates used in the model.

exposure

Character. Exposure variable.

outcome

Character. Outcome variable.

dag

A `dagitty` DAG object.

Value

A list with `$sufficient` (logical), `$model_covariates`, `$adjustment_sets`, and `$recommendation`.