*! version 0.1.6 02mar2022

causaldata

causaldata -- Provides information about data in the causaldata package and using files

Syntax

causaldata [dataset], [use clear download wd erase]

Main
dataset Provide information about which data sets? You can list multiple data sets, or * to list information about them all. Leave this blank to get a list of data set names and their chapter sources.

use Load the listed data set. If use is specified, dataset must contain exactly one data set.

clear If use is specified, clear the current data before opening the new one.

download If use is specified, causaldata will attempt to find the data 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.

erase Erase all data sets associated with causaldata that are in the adopath. If erase is specified, all other parts of the causaldata command will be ignored.

Description

causaldata provides information about the data sets that can be downloaded and accessed with the causaldata package.

Currently, the list of data sets includes the data necessary to run example code in The Effect by Huntington-Klein, Causal Inference: The Mixtape by Scott Cunningham, and Causal Inference: What If by Hernán and Robins.

If you plan to uninstall the causaldata package, it is recommended that you first run causaldata, erase to remove any downloaded data sets from the adopath.

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.

Examples

. * Get a list of all data sets

. causaldata

. * Get information about the mortgages data

. causaldata mortgages

. * Get information about all the data sets

. causaldata *

. * Download (if necessary) and open the mortgages data

. causaldata mortgages, use clear