Learn R Programming

causaldata (version 0.1.3)

ri: A simple simulated data set for calculating p-values

Description

This simulated data allows for a quick and easy calculation of a p-value using randomization inference.

Usage

ri

Arguments

Format

A data frame with 8 rows and 5 variables

name

Fictional Name

d

Treatment

y

Outcome

y0

Outcome if untreated

y1

Outcome if treated

Details

This data is used in the Potential Outcomes Causal Model chapter of Causal Inference: The Mixtape by Cunningham.

References

Cunningham. 2021. Causal Inference: The Mixtape. Yale Press. https://mixtape.scunning.com/index.html.