joineR
R package for fitting joint models to time-to-event and longitudinal data
Science Score: 33.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
✓DOI references
Found 3 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
✓Committers with academic emails
2 of 3 committers (66.7%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (18.2%) to scientific vocabulary
Keywords
biostatistics
competing-risks
cox
joiner
longitudinal-data
r
r-package
repeated-measurements
repeated-measures
statisics
statistical-methods
survival
survival-analysis
time-to-event
Last synced: 6 months ago
·
JSON representation
Repository
R package for fitting joint models to time-to-event and longitudinal data
Basic Info
Statistics
- Stars: 18
- Watchers: 4
- Forks: 9
- Open Issues: 6
- Releases: 0
Topics
biostatistics
competing-risks
cox
joiner
longitudinal-data
r
r-package
repeated-measurements
repeated-measures
statisics
statistical-methods
survival
survival-analysis
time-to-event
Created about 9 years ago
· Last pushed about 1 year ago
Metadata Files
Readme
License
README.Rmd
---
output: github_document
editor_options:
markdown:
wrap: 72
---
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
# joineR
[](https://github.com/graemeleehickey/joineR/actions/workflows/R-CMD-check.yaml)
[](https://ci.appveyor.com/project/graemeleehickey/joineR)
[](https://CRAN.R-project.org/package=joineR)
[](https://CRAN.R-project.org/package=joineR)
[](https://CRAN.R-project.org/package=joineR)
[](http://depsy.org/package/r/joineR)
[](https://doi.org/10.5281/zenodo.1167708)
[](https://app.codecov.io/gh/graemeleehickey/joineR)
The `joineR` package implements methods for analyzing data from
longitudinal studies in which the response from each subject consists of
a time-sequence of repeated measurements and a possibly censored
time-to-event outcome. The modelling framework for the repeated
measurements is the linear model with random effects and/or correlated
error structure (Laird and Ware, 1982). The model for the time-to-event
outcome is a Cox proportional hazards model with log-Gaussian frailty
(Cox, 1972). Stochastic dependence is captured by allowing the Gaussian
random effects of the linear model to be correlated with the frailty
term of the Cox proportional hazards model. The methodology used to fit
the model is described in Henderson et al. (2002) and Wulfsohn and
Tsiatis (1997).
The `joineR` package also allows competing risks data to be jointly
modelled through a cause-specific hazards model. The importance of
accounting for competing risks is detailed in Williamson et al.
(2007a,b). The methodology used to fit this model is described in
Williamson et al. (2008).
# Example
The `joineR` package comes with several data sets including one the
describes the survival of patients who underwent aortic valve
replacement surgery. The patients were routinely followed up in clinic,
where the left ventricular mass index (LVMI) was calculated. To fit a
joint model, we must first create a `jointdata` object, which holds the
survival, longitudinal, and baseline covariate data, along with the
names of the columns that identify the patient identifiers and repeated
time outcomes.
```{r joint_data}
library(joineR)
data(heart.valve)
heart.surv <- UniqueVariables(heart.valve,
var.col = c("fuyrs", "status"),
id.col = "num")
heart.long <- heart.valve[, c("num", "time", "log.lvmi")]
heart.cov <- UniqueVariables(heart.valve,
c("age", "hs", "sex"),
id.col = "num")
heart.valve.jd <- jointdata(longitudinal = heart.long,
baseline = heart.cov,
survival = heart.surv,
id.col = "num",
time.col = "time")
```
With the creation of the `heart.valve.jd` object, we can fit a joint
model using the `joint` function. For this, we need 4 arguments:
- `jointdata`: the data object we created above
- `long.formula`: the linear mixed effects model formula for the
longitudinal sub-model
- `surv.formula`: the survival formula the survival sub-model
- `model`: the latent association structure.
```{r joint_model}
fit <- joint(data = heart.valve.jd,
long.formula = log.lvmi ~ 1 + time + hs,
surv.formula = Surv(fuyrs, status) ~ hs,
model = "intslope")
summary(fit)
```
Full details on the data and the functions are provided in the help
documentation and package vignette. The purpose of this code is to
simply illustrate the ease and speed in fitting the models.
# Multivariate data
`joineR` only models a single repeated measurement and a single event
time. If multiple longitudinal outcomes are available (see Hickey et
al., 2016), a separate package is available:
[`joineRML`](https://CRAN.R-project.org/package=joineRML).
# Funding
This project was funded by the [Medical Research
Council](http://www.mrc.ac.uk) (Grant numbers G0400615 and
MR/M013227/1).

# Using the latest developmental version
To install the latest **developmental version**, you will need the R
package `devtools` and to run the following code
``` r
library('devtools')
install_github('graemeleehickey/joineR', build_vignettes = FALSE)
```
# References
1. Cox DR. Regression models and life-tables. *J R Stat Soc Ser B Stat
Methodol.* 1972; **34(2)**: 187-220.
2. Henderson R, Diggle PJ, Dobson A. Joint modelling of longitudinal
measurements and event time data. *Biostatistics.* 2000; **1(4)**:
465-480.
3. Hickey GL, Philipson P, Jorgensen A, Kolamunnage-Dona R. Joint
modelling of time-to-event and multivariate longitudinal outcomes:
recent developments and issues. *BMC Med Res Methodol.* 2016;
**16(1)**: 117.
4. Laird NM, Ware JH. Random-effects models for longitudinal data.
*Biometrics.* 1982; **38(4)**: 963-974.
5. Williamson PR, Kolamunnage-Dona R, Tudur-Smith C. The influence of
competing-risks setting on the choice of hypothesis test for
treatment effect. *Biostatistics.* 2007; **8(4)**: 689–694.
6. Williamson PR., Tudur-Smith C, Sander JW, Marson AG. Importance of
competing risks in the analysis of anti-epileptic drug failure.
*Trials.* 2007; **8**: 12.
7. Williamson PR, Kolamunnage-Dona R, Philipson P, Marson AG. Joint
modelling of longitudinal and competing risks data. *Stat Med.*
2008; **27**: 6426–6438.
8. Wulfsohn MS, Tsiatis AA. A joint model for survival and longitudinal
data measured with error. *Biometrics.* 1997; **53(1)**: 330-339.
Owner
- Name: Graeme Hickey
- Login: graemeleehickey
- Kind: user
- Location: Liverpool
- Company: Medtronic
- Website: www.glhickey.com
- Twitter: graemeleehickey
- Repositories: 27
- Profile: https://github.com/graemeleehickey
Senior Director of Statistics | Medtronic Structural Heart & Aortic
GitHub Events
Total
- Watch event: 2
- Push event: 4
- Fork event: 1
Last Year
- Watch event: 2
- Push event: 4
- Fork event: 1
Committers
Last synced: over 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Graeme Hickey | g****y@g****m | 210 |
| Pete Philipson | p****1@n****k | 11 |
| Pete Philipson | p****n@n****k | 4 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 59
- Total pull requests: 4
- Average time to close issues: 5 months
- Average time to close pull requests: less than a minute
- Total issue authors: 4
- Total pull request authors: 1
- Average comments per issue: 0.34
- Average comments per pull request: 0.0
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- graemeleehickey (52)
- petephilipson (4)
- shanpengli (2)
- abadereddeen (1)
Pull Request Authors
- graemeleehickey (4)
Top Labels
Issue Labels
enhancement (23)
bug (11)
question (4)
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 776 last-month
- Total docker downloads: 43,390
- Total dependent packages: 1
- Total dependent repositories: 1
- Total versions: 13
- Total maintainers: 1
cran.r-project.org: joineR
Joint Modelling of Repeated Measurements and Time-to-Event Data
- Homepage: https://github.com/graemeleehickey/joineR/
- Documentation: http://cran.r-project.org/web/packages/joineR/joineR.pdf
- License: GPL-3 | file LICENSE
-
Latest release: 1.2.8
published about 3 years ago
Rankings
Docker downloads count: 0.6%
Forks count: 8.7%
Average: 13.4%
Stargazers count: 13.7%
Downloads: 15.1%
Dependent packages count: 18.1%
Dependent repos count: 24.0%
Maintainers (1)
Last synced:
6 months ago
Dependencies
DESCRIPTION
cran
- R >= 3.6 depends
- survival * depends
- MASS * imports
- graphics * imports
- lattice * imports
- nlme * imports
- statmod * imports
- stats * imports
- utils * imports
- covr * suggests
- knitr * suggests
- rmarkdown * suggests
- testthat * suggests
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/setup-r v1 composite
.github/workflows/check-standard.yaml
actions
- actions/cache v2 composite
- actions/checkout v2 composite
- actions/upload-artifact main composite
- r-lib/actions/setup-pandoc v1 composite
- r-lib/actions/setup-r v1 composite
.github/workflows/test-coverage.yaml
actions
- actions/cache v2 composite
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v1 composite
- r-lib/actions/setup-r v1 composite