Skip to content

Commit 2e08280

Browse files
committed
updated CRAN links on README
1 parent 68cda74 commit 2e08280

File tree

9 files changed

+264
-297
lines changed

9 files changed

+264
-297
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
^cran-comments\.md$
1010
^_pkgdown\.yml$
1111
^docs$
12+
^README\.html$

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ inst/doc
66
scratch/
77
vignettes/*.R
88
vignettes/*.html
9+
README.html
910
sanalysis/
1011
sdata/
1112
spix/

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Description: Estimating causal effects from observational studies assuming
1717
License: GPL-3
1818
Encoding: UTF-8
1919
LazyData: true
20-
RoxygenNote: 6.0.1
20+
RoxygenNote: 6.1.0
2121
Depends:
2222
R (>= 3.2)
2323
Imports:

README.Rmd

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
output: github_document
33
---
44

5+
<!-- rmarkdown v1 -->
6+
57
<!-- README.md is generated from README.Rmd. Please edit that file -->
68

79

@@ -19,7 +21,7 @@ knitr::opts_chunk$set(
1921

2022
# About the 'clusteredinterference' package
2123

22-
This package implements the estimators proposed in [Barkley et al. (2017), _Causal Inference from Observational Studies with Clustered Interference_](https://arxiv.org/abs/1711.04834) for estimating the causal effects of different treatment policies in the presence of partial or clustered interference.
24+
This package implements the estimators proposed in [Barkley et al. (2017), _Causal Inference from Observational Studies with Clustered Interference_](https://arxiv.org/abs/1711.04834) for estimating the causal effects of different treatment policies in the presence of partial or clustered interference. The package is available [on CRAN](https://cran.r-project.org/web/packages/clusteredinterference/index.html) with a [companion website](https://barkleybg.github.io/clusteredinterference/)
2325

2426

2527
## What is clustered interference?
@@ -50,10 +52,10 @@ Barkley, B. G., Hudgens, M. G., Clemens, J. D., Ali, M., and Emch, M. E. (2017).
5052

5153
## Install the package
5254

53-
This package is now on CRAN!
55+
This package is now [on CRAN](https://cran.r-project.org/web/packages/clusteredinterference/index.html)!
5456

5557
```{r, eval = FALSE}
56-
install.package("clusteredinterference")
58+
install.packages("clusteredinterference")
5759
```
5860

5961
Or, visit the [GitHub repo:](https://github.com/BarkleyBG/clusteredinterference)

README.md

Lines changed: 68 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,77 @@
1+
---
2+
output: github_document
3+
---
4+
5+
<!-- rmarkdown v1 -->
16

27
<!-- README.md is generated from README.Rmd. Please edit that file -->
38

4-
[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/clusteredinterference)](https://cran.r-project.org/package=clusteredinterference)
5-
[![Travis-CI Build
6-
Status](https://travis-ci.org/BarkleyBG/clusteredinterference.svg?branch=master)](https://travis-ci.org/BarkleyBG/clusteredinterference)
7-
[![Coverage
8-
Status](https://codecov.io/github/BarkleyBG/clusteredinterference/coverage.svg?branch=master)](https://codecov.io/github/BarkleyBG/clusteredinterference)
99

10-
# About the ‘clusteredinterference’ package
1110

12-
This package implements the estimators proposed in [Barkley et al.
13-
(2017), *Causal Inference from Observational Studies with Clustered
14-
Interference*](https://arxiv.org/abs/1711.04834) for estimating the
15-
causal effects of different treatment policies in the presence of
16-
partial or clustered interference.
11+
12+
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/clusteredinterference)](https://cran.r-project.org/package=clusteredinterference)
13+
[![Travis-CI Build Status](https://travis-ci.org/BarkleyBG/clusteredinterference.svg?branch=master)](https://travis-ci.org/BarkleyBG/clusteredinterference)
14+
[![Coverage Status](https://codecov.io/github/BarkleyBG/clusteredinterference/coverage.svg?branch=master)](https://codecov.io/github/BarkleyBG/clusteredinterference)
15+
16+
# About the 'clusteredinterference' package
17+
18+
This package implements the estimators proposed in [Barkley et al. (2017), _Causal Inference from Observational Studies with Clustered Interference_](https://arxiv.org/abs/1711.04834) for estimating the causal effects of different treatment policies in the presence of partial or clustered interference. The package is available [on CRAN](https://cran.r-project.org/web/packages/clusteredinterference/index.html) with a [companion website](https://barkleybg.github.io/clusteredinterference/)
19+
1720

1821
## What is clustered interference?
1922

2023
### What is interference?
2124

22-
In causal inference, when one individual’s treatment may affect another
23-
individual’s outcome, it’s often called **interference**. In most
24-
applications, it is assumed that there is no interference whatsoever. In
25-
some applications this must be relaxed - e.g., as in infectious disease
26-
research.
25+
In causal inference, when one individual's treatment may affect another individual's outcome, it's often called **interference**. In most applications, it is assumed that there is no interference whatsoever. In some applications this must be relaxed - e.g., as in infectious disease research.
2726

2827
### Clustered interference is partial interference
2928

30-
A relaxation of the assumption of “no interference” is to assume that
31-
individuals may be partitioned into distinct clusters of individuals
32-
(e.g., households, or classrooms, etc.) such that there may be
33-
interference within the clusters, but not between the clusters.
34-
Historically, this assumption has been referred to as **partial
35-
interference** after Sobel (2006).
29+
A relaxation of the assumption of "no interference" is to assume that individuals may be partitioned into distinct clusters of individuals (e.g., households, or classrooms, etc.) such that there may be interference within the clusters, but not between the clusters. Historically, this assumption has been referred to as **partial interference** after Sobel (2006).
30+
31+
[Barkley et al. (2017)](https://arxiv.org/abs/1711.04834) introduces the terminology **clustered interference** to refer to this same assumption. This phrase may be sufficiently descriptive of the underlying assumption, and perhaps clarifies the presumed restriction of interference to clusters.
3632

37-
[Barkley et al. (2017)](https://arxiv.org/abs/1711.04834) introduces the
38-
terminology **clustered interference** to refer to this same assumption.
39-
This phrase may be sufficiently descriptive of the underlying
40-
assumption, and perhaps clarifies the presumed restriction of
41-
interference to clusters.
4233

4334
# About the method
4435

45-
[Barkley et al. (2017)](https://arxiv.org/abs/1711.04834) proposes new
46-
causal estimands for defining treatment effects in the context of
47-
observational studies when there may be interference or spillover
48-
effects between units in the same cluster. The manuscript also
49-
introduces IPTW estimators for thos estimands, which are implemented in
50-
‘clusteredinterference’.
36+
[Barkley et al. (2017)](https://arxiv.org/abs/1711.04834) proposes new causal estimands for defining treatment effects in the context of observational studies when there may be interference or spillover effects between units in the same cluster. The manuscript also introduces IPTW estimators for thos estimands, which are implemented in 'clusteredinterference'.
5137

5238
## The manuscript
5339

54-
A version of this manuscript is available [on arXiv
55-
at 1711.04834](https://arxiv.org/abs/1711.04834):
40+
A version of this manuscript is available [on arXiv at 1711.04834](https://arxiv.org/abs/1711.04834):
5641

57-
Barkley, B. G., Hudgens, M. G., Clemens, J. D., Ali, M., and Emch, M. E.
58-
(2017). Causal inference from observational studies with clustered
59-
interference. *arXiv preprint arXiv:1711.04834*. URL
60-
<https://arxiv.org/abs/1711.04834>.
42+
Barkley, B. G., Hudgens, M. G., Clemens, J. D., Ali, M., and Emch, M. E. (2017). Causal inference from observational studies with clustered interference. *arXiv preprint arXiv:1711.04834*. URL <https://arxiv.org/abs/1711.04834>.
6143

62-
# Using the ‘clusteredinterference’ package
44+
45+
# Using the 'clusteredinterference' package
6346

6447
## Install the package
6548

66-
This package is now on CRAN\!
49+
This package is now [on CRAN](https://cran.r-project.org/web/packages/clusteredinterference/index.html)!
50+
6751

68-
``` r
69-
install.package("clusteredinterference")
52+
```r
53+
install.packages("clusteredinterference")
7054
```
7155

72-
Or, visit the [GitHub
73-
repo:](https://github.com/BarkleyBG/clusteredinterference)
56+
Or, visit the [GitHub repo:](https://github.com/BarkleyBG/clusteredinterference)
57+
7458

75-
``` r
59+
```r
7660
# devtools::install_github("BarkleyBG/clusteredinterference")
7761
```
7862

79-
## Load this package
8063

81-
``` r
64+
## Load this package
65+
66+
67+
```r
8268
library(clusteredinterference)
8369
```
8470

8571
## A quick data example
8672

87-
``` r
73+
74+
```r
8875
data("toy_data")
8976
head(toy_data)
9077
#> Outcome Treatment Cluster_ID Age Distance
@@ -100,7 +87,8 @@ head(toy_data)
10087

10188
Estimation is carried out with one function:
10289

103-
``` r
90+
91+
```r
10492
set.seed(1113)
10593
causal_fx <- policyFX(
10694
data = toy_data,
@@ -112,7 +100,8 @@ causal_fx <- policyFX(
112100

113101
The estimates of causal estimands are printed in a tidy dataframe:
114102

115-
``` r
103+
104+
```r
116105
causal_fx
117106
#> ------------- causal estimates --------------
118107
#> estimand estimate se LCI UCI
@@ -130,7 +119,8 @@ causal_fx
130119

131120
Use `summary()` for a little more information:
132121

133-
``` r
122+
123+
```r
134124
summary(causal_fx)
135125
#> ------------- causal estimates --------------
136126
#> estimand estimate se LCI UCI
@@ -171,90 +161,62 @@ summary(causal_fx)
171161
#> ---------------------------------------------
172162
```
173163

174-
Note that `Treatment ~ Age + Distance + (1 | Cluster_ID)` in the the
175-
middle of the `formula` argument is sent to `lme4::glmer()` to specify
176-
the form of the (logit-link binomial) treatment model.
164+
Note that `Treatment ~ Age + Distance + (1 | Cluster_ID)` in the the middle of the `formula` argument is sent to `lme4::glmer()` to specify the form of the (logit-link binomial) treatment model.
165+
166+
The `policyFX()` output list includes an element, `formula`, for the `Formula` object:
177167

178-
The `policyFX()` output list includes an element, `formula`, for the
179-
`Formula` object:
180168

181-
``` r
169+
```r
182170
causal_fx$formula
183171
#> Outcome | Treatment ~ Age + Distance + (1 | Cluster_ID) | Cluster_ID
184172
```
185173

186-
The output list also includes an element, `model`, which is the fitted
187-
`glmerMod` S4 model object. Here we can see that the middle of `formula`
188-
was passed into the `glmer()` logit-link binomial mixed model:
174+
The output list also includes an element, `model`, which is the fitted `glmerMod` S4 model object. Here we can see that the middle of `formula` was passed into the `glmer()` logit-link binomial mixed model:
175+
189176

190-
``` r
177+
```r
191178
causal_fx$model@call
192179
#> lme4::glmer(formula = Treatment ~ Age + Distance + (1 | Cluster_ID),
193180
#> data = data, family = stats::binomial, nAGQ = nAGQ)
194181
```
195182

196-
The fitted model estimates three fixed effects (intercept, a term for
197-
`Age` and a term for `Distance`) and one random effect (for
198-
`Cluster_ID`):
183+
The fitted model estimates three fixed effects (intercept, a term for `Age` and a term for `Distance`) and one random effect (for `Cluster_ID`):
199184

200-
``` r
185+
186+
```r
201187
lme4::getME(causal_fx$model, c("beta", "theta"))
202188
#> $beta
203-
#> [1] -1.44608710 -0.00850977 0.26096895
189+
#> [1] -1.446087049 -0.008509771 0.260968952
204190
#>
205191
#> $theta
206192
#> Cluster_ID.(Intercept)
207193
#> 1.180325
208194
```
209195

196+
210197
## Vignette
211198

212199
The vignette provides more information on the formal arguments:
213200

214-
``` r
201+
202+
```r
215203
vignette("estimate-policyFX")
216204
```
217205

206+
218207
# News and version history
219208

220-
A changelog is found in the `NEWS.md` file. Version history is also
221-
tracked by the [release
222-
tags](https://github.com/BarkleyBG/clusteredinterference/releases) for
223-
this GitHub repo.
209+
A changelog is found in the `NEWS.md` file. Version history is also tracked by the [release tags](https://github.com/BarkleyBG/clusteredinterference/releases) for this GitHub repo.
210+
224211

225212
# References and acknowledgments
226213

227-
- The manuscript introducing the methods in ‘clusteredinterference’
228-
is:
229-
- Barkley, B. G., Hudgens, M. G., Clemens, J. D., Ali, M., and
230-
Emch, M. E. (2017). Causal inference from observational studies
231-
with clustered interference. *arXiv preprint arXiv:1711.04834*.
232-
URL <https://arxiv.org/abs/1711.04834>.
233-
- The terminology of **partial interference** is attributed to Sobel
234-
(2006):
235-
- Sobel, M. E. (2006). What do randomized studies of housing
236-
mobility demonstrate? Causal inference in the face of
237-
interference. *Journal of the American Statistical Association*,
238-
101(476), 1398-1407.
239-
[doi: 10.1198/016214506000000636](http://dx.doi.org/10.1198/016214506000000636)
240-
- Please see the
241-
[`inferference`](https://cran.r-project.org/package=inferference)
242-
package for related estimators from the following articles:
243-
- Perez‐Heydrich, C., Hudgens, M. G., Halloran, M. E., Clemens, J.
244-
D., Ali, M., & Emch, M. E. (2014). Assessing effects of cholera
245-
vaccination in the presence of interference. *Biometrics*,
246-
70(3), 731-741. [doi:
247-
10.1111/biom.12184](doi.wiley.com/10.1111/biom.12184)
248-
- Tchetgen, E. J. T., & VanderWeele, T. J. (2012). On causal
249-
inference in the presence of interference. *Statistical Methods
250-
in Medical Research*, 21(1), 55-75.
251-
[doi: 10.1177/0962280210386779](https://doi.org/10.1177/0962280210386779)
252-
- An earlier version of the methods implemented in
253-
‘clusteredinterference’ was implemented using the
254-
[`geex`](https://github.com/bsaul/geex) package for estimating
255-
equations.
256-
- Thanks to [Bradley Saul](https://github.com/bsaul) for
257-
[`inferference`](https://cran.r-project.org/package=inferference),
258-
[`geex`](https://github.com/bsaul/geex), and for comments and
259-
suggestions that were helpful in the creation of
260-
‘clusteredinterference’.
214+
- The manuscript introducing the methods in 'clusteredinterference' is:
215+
- Barkley, B. G., Hudgens, M. G., Clemens, J. D., Ali, M., and Emch, M. E. (2017). Causal inference from observational studies with clustered interference. *arXiv preprint arXiv:1711.04834*. URL <https://arxiv.org/abs/1711.04834>.
216+
- The terminology of **partial interference** is attributed to Sobel (2006):
217+
- Sobel, M. E. (2006). What do randomized studies of housing mobility demonstrate? Causal inference in the face of interference. *Journal of the American Statistical Association*, 101(476), 1398-1407. [doi: 10.1198/016214506000000636](http://dx.doi.org/10.1198/016214506000000636)
218+
- Please see the [`inferference`](https://cran.r-project.org/package=inferference) package for related estimators from the following articles:
219+
- Perez‐Heydrich, C., Hudgens, M. G., Halloran, M. E., Clemens, J. D., Ali, M., & Emch, M. E. (2014). Assessing effects of cholera vaccination in the presence of interference. *Biometrics*, 70(3), 731-741. [doi: 10.1111/biom.12184](doi.wiley.com/10.1111/biom.12184)
220+
- Tchetgen, E. J. T., & VanderWeele, T. J. (2012). On causal inference in the presence of interference. *Statistical Methods in Medical Research*, 21(1), 55-75. [doi: 10.1177/0962280210386779](https://doi.org/10.1177/0962280210386779)
221+
- An earlier version of the methods implemented in 'clusteredinterference' was implemented using the [`geex`](https://github.com/bsaul/geex) package for estimating equations.
222+
- Thanks to [Bradley Saul](https://github.com/bsaul) for [`inferference`](https://cran.r-project.org/package=inferference), [`geex`](https://github.com/bsaul/geex), and for comments and suggestions that were helpful in the creation of 'clusteredinterference'.

0 commit comments

Comments
 (0)