forked from ainaimi/pgf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
38 lines (26 loc) · 1.43 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# pgf
pgf is an R implementation of the parametric g formula, first developed by Robins in the mid 1980s. The purpose of this program is to simulate the follow-up of a cohort study with complex longitudinal data under different exposure regimes. pgf accomplishes this in two steps:
* Fit empirical models to the observed complex longitudinal dataset.
* Simulate follow-up from each model, but setting the exposure/censoring values to desired levels.
You can install the latest development version from github with
```R
install.packages("devtools")
devtools::install_github("ainaimi/pgf")
```
If you encounter a bug or other issue, please file a request on [github](https://github.com/ainaimi/pgf/issues).
## Learning pgf
A vignette for the pgf package is currently in preparation. To learn about the parametric g formula more generally, please refer to the following citations:
* [Naimi et al (2016)](https://academic.oup.com/ije/article-abstract/doi/10.1093/ije/dyw323/2760169/An-Introduction-to-G-Methods?redirectedFrom=fulltext)
* [Daniel et al (2013)](http://onlinelibrary.wiley.com/doi/10.1002/sim.5686/abstract)
* [Robins and Hernan (2009)](https://cdn1.sph.harvard.edu/wp-content/uploads/sites/343/2013/03/abc.pdf)