├── .Rbuildignore
├── .github
└── CONTRIBUTING.md
├── .gitignore
├── .travis.yml
├── CODE_OF_CONDUCT.md
├── DESCRIPTION
├── LICENSE
├── LICENSE.md
├── NAMESPACE
├── R
└── utils-pipe.R
├── README.Rmd
├── README.md
├── _pkgdown.yml
├── appveyor.yml
├── causalinfer.Rproj
├── codecov.yml
├── docs
├── CODE_OF_CONDUCT.html
├── CONTRIBUTING.html
├── LICENSE-text.html
├── LICENSE.html
├── authors.html
├── docsearch.css
├── docsearch.js
├── index.html
├── link.svg
├── pkgdown.css
├── pkgdown.js
├── pkgdown.yml
└── reference
│ ├── figures
│ └── README-pressure-1.png
│ ├── hello.html
│ ├── index.html
│ └── pipe.html
├── inst
└── WORDLIST
├── man
├── figures
│ └── README-pressure-1.png
└── pipe.Rd
└── tests
├── spelling.R
├── testthat.R
└── testthat
└── test-causalinfer.R
/.Rbuildignore:
--------------------------------------------------------------------------------
1 | ^README\.Rmd$
2 | ^.*\.Rproj$
3 | ^\.Rproj\.user$
4 | ^LICENSE\.md$
5 | ^_pkgdown\.yml$
6 | ^docs$
7 | ^pkgdown$
8 | ^CODE_OF_CONDUCT\.md$
9 | ^\.github$
10 | ^\.travis\.yml$
11 | ^appveyor\.yml$
12 | ^codecov\.yml$
13 |
--------------------------------------------------------------------------------
/.github/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing to causalinfer
2 |
3 | This outlines how to propose a change to causalinfer. It is based on the
4 | [**tidyverse development contributing guide**](https://rstd.io/tidy-contrib).
5 |
6 | ### Fixing typos
7 |
8 | Small typos or grammatical errors in documentation may be edited directly using
9 | the GitHub web interface, so long as the changes are made in the _source_ file.
10 |
11 | * YES: you edit a roxygen comment in a `.R` file below `R/`.
12 | * NO: you edit an `.Rd` file below `man/`.
13 |
14 | ### Prerequisites
15 |
16 | Before you make a substantial pull request, you should always file an issue and
17 | make sure someone from the team agrees that it’s a problem. If you’ve found a
18 | bug, create an associated issue and illustrate the bug with a minimal
19 | [reprex](https://www.tidyverse.org/help/#reprex).
20 |
21 | ### Pull request process
22 |
23 | * We recommend that you create a Git branch for each pull request (PR).
24 | * Look at the Travis and AppVeyor build status before and after making changes.
25 | The `README` should contain badges for any continuous integration services used
26 | by the package.
27 | * New code should follow the tidyverse [style guide](http://style.tidyverse.org).
28 | You can use the [styler](https://CRAN.R-project.org/package=styler) package to
29 | apply these styles, but please don't restyle code that has nothing to do with
30 | your PR.
31 | * We use [roxygen2](https://cran.r-project.org/package=roxygen2), with
32 | [Markdown syntax](https://cran.r-project.org/web/packages/roxygen2/vignettes/markdown.html),
33 | for documentation.
34 | * We use [testthat](https://cran.r-project.org/package=testthat). Contributions
35 | with test cases included are easier to accept.
36 | * For user-facing changes, add a bullet to the top of `NEWS.md` below the
37 | current development version header describing the changes made followed by your
38 | GitHub username, and links to relevant issue(s)/PR(s).
39 |
40 | ### Code of Conduct
41 |
42 | Please note that the causalinfer project is released with a
43 | [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By contributing to this
44 | project you agree to abide by its terms.
45 |
46 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .Rproj.user
2 | .Rhistory
3 | .RData
4 | .Ruserdata
5 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | # R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
2 |
3 | language: R
4 | cache: packages
5 | after_success:
6 | - Rscript -e 'covr::codecov()'
7 |
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Contributor Code of Conduct
2 |
3 | As contributors and maintainers of this project, we pledge to respect all people who
4 | contribute through reporting issues, posting feature requests, updating documentation,
5 | submitting pull requests or patches, and other activities.
6 |
7 | We are committed to making participation in this project a harassment-free experience for
8 | everyone, regardless of level of experience, gender, gender identity and expression,
9 | sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
10 |
11 | Examples of unacceptable behavior by participants include the use of sexual language or
12 | imagery, derogatory comments or personal attacks, trolling, public or private harassment,
13 | insults, or other unprofessional conduct.
14 |
15 | Project maintainers have the right and responsibility to remove, edit, or reject comments,
16 | commits, code, wiki edits, issues, and other contributions that are not aligned to this
17 | Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed
18 | from the project team.
19 |
20 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by
21 | opening an issue or contacting one or more of the project maintainers.
22 |
23 | This Code of Conduct is adapted from the Contributor Covenant
24 | (https://www.contributor-covenant.org), version 1.0.0, available at
25 | https://contributor-covenant.org/version/1/0/0/.
26 |
--------------------------------------------------------------------------------
/DESCRIPTION:
--------------------------------------------------------------------------------
1 | Package: causalinfer
2 | Title: What the Package Does (One Line, Title Case)
3 | Version: 0.0.0.9000
4 | Authors@R:
5 | person(given = "Malcolm",
6 | family = "Barrett",
7 | role = c("aut", "cre"),
8 | email = "malcolmbarrett@gmail.com",
9 | comment = c(ORCID = "0000-0003-0299-5825"))
10 | Description: What the package does (one paragraph).
11 | License: MIT + file LICENSE
12 | Encoding: UTF-8
13 | Language: en-US
14 | LazyData: true
15 | Roxygen: list(markdown = TRUE)
16 | RoxygenNote: 6.1.1
17 | Suggests:
18 | testthat,
19 | spelling,
20 | covr
21 | Imports:
22 | magrittr
23 | URL: https://github.com/malcolmbarrett/causalinfer
24 | BugReports: https://github.com/malcolmbarrett/causalinfer/issues
25 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | YEAR: 2019
2 | COPYRIGHT HOLDER: Malcolm Barrett
3 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | # MIT License
2 |
3 | Copyright (c) 2019 Malcolm Barrett
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/NAMESPACE:
--------------------------------------------------------------------------------
1 | # Generated by roxygen2: do not edit by hand
2 |
3 | export("%>%")
4 | importFrom(magrittr,"%>%")
5 |
--------------------------------------------------------------------------------
/R/utils-pipe.R:
--------------------------------------------------------------------------------
1 | #' Pipe operator
2 | #'
3 | #' See \code{magrittr::\link[magrittr]{\%>\%}} for details.
4 | #'
5 | #' @name %>%
6 | #' @rdname pipe
7 | #' @keywords internal
8 | #' @export
9 | #' @importFrom magrittr %>%
10 | #' @usage lhs \%>\% rhs
11 | NULL
12 |
--------------------------------------------------------------------------------
/README.Rmd:
--------------------------------------------------------------------------------
1 | ---
2 | output: github_document
3 | ---
4 |
5 |
6 |
7 | ```{r, include = FALSE}
8 | knitr::opts_chunk$set(
9 | collapse = TRUE,
10 | comment = "#>",
11 | fig.path = "man/figures/README-",
12 | out.width = "100%"
13 | )
14 | ```
15 | # causalinfer
16 |
17 |
18 | [](https://www.tidyverse.org/lifecycle/#experimental)
19 | [](https://travis-ci.org/malcolmbarrett/causalinfer)
20 | [](https://ci.appveyor.com/project/malcolmbarrett/causalinfer)
21 | [](https://codecov.io/gh/malcolmbarrett/causalinfer?branch=master)
22 |
23 |
24 | causalinfer is a generalized package for causal inference. This package is modeled after the [infer](https://github.com/tidymodels/infer) R package.
25 |
26 | causalinfer is under development
27 |
28 | ## Installation
29 |
30 | You can install the development version of dolly from GitHub with:
31 |
32 | ``` r
33 | # install.packages("remotes")
34 | remotes::install_github("malcolmbarrett/dolly")
35 | ```
36 |
37 | Please note that the 'causalinfer' project is released with a
38 | [Contributor Code of Conduct](CODE_OF_CONDUCT.md).
39 | By contributing to this project, you agree to abide by its terms.
40 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | # causalinfer
5 |
6 |
7 |
8 | [](https://www.tidyverse.org/lifecycle/#experimental)
10 | [](https://travis-ci.org/malcolmbarrett/causalinfer)
12 | [](https://ci.appveyor.com/project/malcolmbarrett/causalinfer)
14 | [](https://codecov.io/gh/malcolmbarrett/causalinfer?branch=master)
16 |
17 |
18 | causalinfer is a generalized package for causal inference. This package
19 | is modeled after the [infer](https://github.com/tidymodels/infer) R
20 | package.
21 |
22 | causalinfer is under development
23 |
24 | ## Installation
25 |
26 | You can install the development version of dolly from GitHub with:
27 |
28 | ``` r
29 | # install.packages("remotes")
30 | remotes::install_github("malcolmbarrett/dolly")
31 | ```
32 |
33 | Please note that the ‘causalinfer’ project is released with a
34 | [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By contributing to
35 | this project, you agree to abide by its terms.
36 |
--------------------------------------------------------------------------------
/_pkgdown.yml:
--------------------------------------------------------------------------------
1 | destination: docs
2 |
--------------------------------------------------------------------------------
/appveyor.yml:
--------------------------------------------------------------------------------
1 | # DO NOT CHANGE the "init" and "install" sections below
2 |
3 | # Download script file from GitHub
4 | init:
5 | ps: |
6 | $ErrorActionPreference = "Stop"
7 | Invoke-WebRequest http://raw.github.com/krlmlr/r-appveyor/master/scripts/appveyor-tool.ps1 -OutFile "..\appveyor-tool.ps1"
8 | Import-Module '..\appveyor-tool.ps1'
9 |
10 | install:
11 | ps: Bootstrap
12 |
13 | cache:
14 | - C:\RLibrary
15 |
16 | environment:
17 | NOT_CRAN: true
18 | # env vars that may need to be set, at least temporarily, from time to time
19 | # see https://github.com/krlmlr/r-appveyor#readme for details
20 | # USE_RTOOLS: true
21 | # R_REMOTES_STANDALONE: true
22 |
23 | # Adapt as necessary starting from here
24 |
25 | build_script:
26 | - travis-tool.sh install_deps
27 |
28 | test_script:
29 | - travis-tool.sh run_tests
30 |
31 | on_failure:
32 | - 7z a failure.zip *.Rcheck\*
33 | - appveyor PushArtifact failure.zip
34 |
35 | artifacts:
36 | - path: '*.Rcheck\**\*.log'
37 | name: Logs
38 |
39 | - path: '*.Rcheck\**\*.out'
40 | name: Logs
41 |
42 | - path: '*.Rcheck\**\*.fail'
43 | name: Logs
44 |
45 | - path: '*.Rcheck\**\*.Rout'
46 | name: Logs
47 |
48 | - path: '\*_*.tar.gz'
49 | name: Bits
50 |
51 | - path: '\*_*.zip'
52 | name: Bits
53 |
--------------------------------------------------------------------------------
/causalinfer.Rproj:
--------------------------------------------------------------------------------
1 | Version: 1.0
2 |
3 | RestoreWorkspace: No
4 | SaveWorkspace: No
5 | AlwaysSaveHistory: Default
6 |
7 | EnableCodeIndexing: Yes
8 | UseSpacesForTab: Yes
9 | NumSpacesForTab: 2
10 | Encoding: UTF-8
11 |
12 | RnwWeave: knitr
13 | LaTeX: XeLaTeX
14 |
15 | AutoAppendNewline: Yes
16 | StripTrailingWhitespace: Yes
17 |
18 | BuildType: Package
19 | PackageUseDevtools: Yes
20 | PackageInstallArgs: --no-multiarch --with-keep.source
21 |
--------------------------------------------------------------------------------
/codecov.yml:
--------------------------------------------------------------------------------
1 | comment: false
2 |
3 | coverage:
4 | status:
5 | project:
6 | default:
7 | target: auto
8 | threshold: 1%
9 | patch:
10 | default:
11 | target: auto
12 | threshold: 1%
13 |
--------------------------------------------------------------------------------
/docs/CODE_OF_CONDUCT.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
105 |
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
106 |
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
107 |
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
108 |
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
Small typos or grammatical errors in documentation may be edited directly using the GitHub web interface, so long as the changes are made in the source file.
109 |
110 |
YES: you edit a roxygen comment in a .R file below R/.
111 |
NO: you edit an .Rd file below man/.
112 |
113 |
114 |
115 |
116 | Prerequisites
117 |
Before you make a substantial pull request, you should always file an issue and make sure someone from the team agrees that it’s a problem. If you’ve found a bug, create an associated issue and illustrate the bug with a minimal reprex.
118 |
119 |
120 |
121 | Pull request process
122 |
123 |
We recommend that you create a Git branch for each pull request (PR).
124 |
125 |
Look at the Travis and AppVeyor build status before and after making changes. The README should contain badges for any continuous integration services used by the package.
126 |
127 |
New code should follow the tidyverse style guide. You can use the styler package to apply these styles, but please don’t restyle code that has nothing to do with your PR.
128 |
We use testthat. Contributions with test cases included are easier to accept.
132 |
133 |
For user-facing changes, add a bullet to the top of NEWS.md below the current development version header describing the changes made followed by your GitHub username, and links to relevant issue(s)/PR(s).
134 |
135 |
136 |
137 |
138 | Code of Conduct
139 |
Please note that the causalinfer project is released with a Contributor Code of Conduct. By contributing to this project you agree to abide by its terms.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
106 |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
107 |
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please note that the ‘causalinfer’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.