*! version 0.1.7 25oct2024

causaldata

usecausaldata -- Locates and opens data sets from the causaldata package

Syntax

usecausaldata dataset, [clear download wd]

Main
dataset Open which data set? See causaldata for a list of data sets and information about them.

clear Clear the current data before opening the new one.

download usecausaldata will attempt to find dataset in the adopath, and then in the working directory. If it can't find it, it will try to download it, and will prompt the user to confirm. If download is specified, the prompt will be skipped and any necessary data will be auto-downloaded.

wd Leave all the downloaded data sets in the working directory rather than moving them to the adopath.

Description

usecausaldata locates data sets that can be downloaded and accessed with the causaldata package, and if it can't find them, downloads them for you and attempts to place them in the adopath.

Most of the time you won't be using usecausaldata directly, and will instead just use causaldata with the use option.

Author

Nick Huntington-Klein
nhuntington-klein@seattleu.edu

References

Cunningham. 2021. Causal Inference: The Mixtape. Yale Press. Link.

Hernán and Robins. 2020. Causal Inference: What If. Chapman & Hall/CRC. Link.

Huntington-Klein. 2021. The Effect: An Introduction to Research Design and Causality. Link.