Skip to contents

Unified accessor for the tutorial datasets. dr3 ships no data; each dataset is pulled from another package.

Usage

dr_data(dataset = c("nhefs", "rhc"), ...)

Arguments

dataset

"nhefs" (via causaldata) or "rhc" (via Hmisc).

...

Passed to the specific loader (e.g. outcome= for "rhc").

Value

A list with name, Y, A, X, family_y, outcome_type, truth.

See also

Examples

if (FALSE)  d <- dr_data("nhefs")  # \dontrun{}