Skip to content

Commit

Permalink
update citation
Browse files Browse the repository at this point in the history
  • Loading branch information
LucyMcGowan committed Dec 6, 2023
1 parent 8555c0c commit b812b77
Show file tree
Hide file tree
Showing 17 changed files with 29 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
^\.Rproj\.user$
^LICENSE\.md$
^data-raw$
^README\.Rmd$
^README\.qmd$
^_pkgdown\.yml$
^docs$
^pkgdown$
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: quartets
Type: Package
Title: Datasets to Help Teach Statistics
Version: 0.1.2
Version: 0.1.3
Authors@R: c(
person("Lucy", "D'Agostino McGowan", , "[email protected]",
role = c("aut", "cre"), comment = c(ORCID = "0000-0002-6983-2759"))
Expand All @@ -11,7 +11,7 @@ Description: In the spirit of Anscombe's quartet, this package includes datasets
not relying on statistical summary measures alone, and why additional
assumptions about the data generating mechanism are needed when estimating
causal effects. The package includes "Anscombe's Quartet" (Anscombe 1973) <doi:10.1080/00031305.1973.10478966>,
D'Agostino McGowan & Barrett (2023) "Causal Quartet" <doi:10.48550/arXiv.2304.02683>,
D'Agostino McGowan & Barrett (2023) "Causal Quartet" <doi:10.1080/26939169.2023.2276446>,
"Datasaurus Dozen" (Matejka & Fitzmaurice 2017), "Interaction Triptych" (Rohrer & Arslan 2021) <doi:10.1177/25152459211007368>, "Rashomon Quartet" (Biecek et al. 2023) <doi:10.48550/arXiv.2302.13356>, and
Gelman "Variation and Heterogeneity Causal Quartets" (Gelman et al. 2023) <doi:10.48550/arXiv.2302.12878>.
License: MIT + file LICENSE
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@
# quartets 0.1.2

* Add an article demonstrating how to use the datasets with a real-world example

# quartets 0.1.3

* Update citation for Causal Quartet
2 changes: 1 addition & 1 deletion R/causal_collider.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#' Y ~ X + N(0,1) (outcome)
#' Z ~ 0.45X + 0.77Y + N(0, 1) (measured factor: collider)
#'
#' @references D'Agostino McGowan L, Barrett M (2023). Causal inference is not a statistical problem. Preprint arXiv:2304.02683v1.
#' @references Lucy D’Agostino McGowan, Travis Gerke & Malcolm Barrett (2023) Causal inference is not just a statistics problem, Journal of Statistics and Data Science Education, DOI: 10.1080/26939169.2023.2276446
#' @format A dataframe with 100 rows and 3 variables:
#'
#' * `exposure`: exposure
Expand Down
2 changes: 1 addition & 1 deletion R/causal_confounding.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#' Z ~ N(0, 1) (measured factor: confounder)
#' X ~ Z + N(0,1) (exposure)
#' Y ~ 0.5X + Z + N(0, 1) (outcome)
#' @references D'Agostino McGowan L, Barrett M (2023). Causal inference is not a statistical problem. Preprint arXiv:2304.02683v1.
#' @references Lucy D’Agostino McGowan, Travis Gerke & Malcolm Barrett (2023) Causal inference is not just a statistics problem, Journal of Statistics and Data Science Education, DOI: 10.1080/26939169.2023.2276446
#' @format A dataframe with 100 rows and 3:
#'
#' * `covariate`: a known factor (confounder)
Expand Down
3 changes: 1 addition & 2 deletions R/causal_m_bias.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
#' X ~ U1 + N(0, 1) (exposure)
#' Y ~ X + U2 + N(0, 1) (outcome)
#'
#' @references D'Agostino McGowan L, Barrett M (2023). Causal inference is not a statistical problem. Preprint arXiv:2304.02683v1.
#'
#' @references Lucy D’Agostino McGowan, Travis Gerke & Malcolm Barrett (2023) Causal inference is not just a statistics problem, Journal of Statistics and Data Science Education, DOI: 10.1080/26939169.2023.2276446
#' @format A dataframe with 100 rows and 5 variables:
#'
#' * `u1`: an unknown factor
Expand Down
2 changes: 1 addition & 1 deletion R/causal_mediator.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#' Z ~ X + N(0,1) (measured factor: mediator)
#' Y ~ Z + N(0, 1) (outcome)
#'
#' @references D'Agostino McGowan L, Barrett M (2023). Causal inference is not a statistical problem. Preprint arXiv:2304.02683v1.
#' @references Lucy D’Agostino McGowan, Travis Gerke & Malcolm Barrett (2023) Causal inference is not just a statistics problem, Journal of Statistics and Data Science Education, DOI: 10.1080/26939169.2023.2276446
#'
#' @format A dataframe with 100 rows and 3 variables:
#'
Expand Down
2 changes: 1 addition & 1 deletion R/causal_quartet.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#' * (3) A mediator
#' * (4) M-bias
#'
#' @references D'Agostino McGowan L, Barrett M (2023). Causal inference is not a statistical problem. Preprint arXiv:2304.02683v1.
#' @references Lucy D’Agostino McGowan, Travis Gerke & Malcolm Barrett (2023) Causal inference is not just a statistics problem, Journal of Statistics and Data Science Education, DOI: 10.1080/26939169.2023.2276446
#'
#' @format A dataframe with 400 rows and 6 variables:
#'
Expand Down
2 changes: 1 addition & 1 deletion R/causal_quartet_time.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#' ## occur.
#' lm(outcome_followup ~ exposure_baseline + covariate_baseline,
#' data = causal_collider_time)
#' @references D'Agostino McGowan L, Barrett M (2023). Causal inference is not a statistical problem. Preprint arXiv:2304.02683v1.
#' @references Lucy D’Agostino McGowan, Travis Gerke & Malcolm Barrett (2023) Causal inference is not just a statistics problem, Journal of Statistics and Data Science Education, DOI: 10.1080/26939169.2023.2276446
#'
#' @format `causal_collider_time`: A dataframe with 100 rows and 7 variables:
#'
Expand Down
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ causal_quartet |>
knitr::kable()
```

| Data generating mechanism | Y \~ X | Y \~ X + Z | Correlation of X and Z |
|:--------------------------|-------:|-----------:|-----------------------:|
| \(1\) Collider | 1 | 0.55 | 0.7 |
| \(2\) Confounder | 1 | 0.50 | 0.7 |
| \(3\) Mediator | 1 | 0.00 | 0.7 |
| \(4\) M-Bias | 1 | 0.88 | 0.7 |
| Data generating mechanism | Y ~ X | Y ~ X + Z | Correlation of X and Z |
|:--------------------------|------:|----------:|-----------------------:|
| \(1\) Collider | 1 | 0.55 | 0.7 |
| \(2\) Confounder | 1 | 0.50 | 0.7 |
| \(3\) Mediator | 1 | 0.00 | 0.7 |
| \(4\) M-Bias | 1 | 0.88 | 0.7 |

## Datasaurus Dozen

Expand Down Expand Up @@ -389,8 +389,9 @@ Statistician. 27 (1): 17–21. doi:10.1080/00031305.1973.10478966. JSTOR
Biecek P, Baniecki H, Krzyziński M, Cook D (2023). Performance is not
enough: the story of Rashomon’s quartet. Preprint arXiv:2302.13356v2.

D’Agostino McGowan L, Barrett M (2023). Causal inference is not a
statistical problem. Preprint arXiv:2304.02683v1.
Lucy D’Agostino McGowan, Travis Gerke & Malcolm Barrett (2023) Causal
inference is not just a statistics problem, Journal of Statistics and
Data Science Education, DOI: 10.1080/26939169.2023.2276446

Davies R, Locke S, D’Agostino McGowan L (2022). *datasauRus: Datasets
from the Datasaurus Dozen*. R package version 0.1.6,
Expand Down
2 changes: 1 addition & 1 deletion README.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ Anscombe, F. J. (1973). "Graphs in Statistical Analysis". American Statistician.

Biecek P, Baniecki H, Krzyziński M, Cook D (2023). Performance is not enough: the story of Rashomon’s quartet. Preprint arXiv:2302.13356v2.

D'Agostino McGowan L, Barrett M (2023). Causal inference is not a statistical problem. Preprint arXiv:2304.02683v1.
Lucy D’Agostino McGowan, Travis Gerke & Malcolm Barrett (2023) Causal inference is not just a statistics problem, Journal of Statistics and Data Science Education, DOI: 10.1080/26939169.2023.2276446

Davies R, Locke S, D'Agostino McGowan L (2022). _datasauRus: Datasets from the Datasaurus Dozen_. R package version 0.1.6, <https://CRAN.R-project.org/package=datasauRus>.

Expand Down
2 changes: 1 addition & 1 deletion man/causal_collider.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/causal_collider_time.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/causal_confounding.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/causal_m_bias.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/causal_mediator.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/causal_quartet.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b812b77

Please sign in to comment.