All Projects → graemeleehickey → joineRML

graemeleehickey / joineRML

Licence: GPL-3.0 license
R package for fitting joint models to time-to-event data and multivariate longitudinal data

Programming Languages

r
7636 projects
C++
36643 projects - #6 most used programming language
TeX
3793 projects
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to joineRML

URT
Fast Unit Root Tests and OLS regression in C++ with wrappers for R and Python
Stars: ✭ 70 (+191.67%)
Mutual labels:  rcpp, armadillo
Sales-Prediction
In depth analysis and forecasting of product sales based on the items, stores, transaction and other dependent variables like holidays and oil prices.
Stars: ✭ 56 (+133.33%)
Mutual labels:  prediction, regression-models
gmwm
Generalized Method of Wavelet Moments (GMWM) is an estimation technique for the parameters of time series models. It uses the wavelet variance in a moment matching approach that makes it particularly suitable for the estimation of certain state-space models.
Stars: ✭ 21 (-12.5%)
Mutual labels:  rcpp, armadillo
FTRLProximal
R package for online training of regression models using FTRL Proximal
Stars: ✭ 12 (-50%)
Mutual labels:  prediction, regression-models
rcppensmallen
Rcpp integration for the Ensmallen templated C++ mathematical optimization library
Stars: ✭ 28 (+16.67%)
Mutual labels:  rcpp, armadillo
laravel-livewire-modals
Dynamic Laravel Livewire Bootstrap modals.
Stars: ✭ 63 (+162.5%)
Mutual labels:  dynamic
tlverse-handbook
🎯 📕 Targeted Learning in R: A Causal Data Science Handbook
Stars: ✭ 50 (+108.33%)
Mutual labels:  biostatistics
regression-python
In this repository you can find many different, small, projects which demonstrate regression techniques using python programming language
Stars: ✭ 15 (-37.5%)
Mutual labels:  regression-models
url-survival-check
批量检测URL存活
Stars: ✭ 44 (+83.33%)
Mutual labels:  survival
nextjs-redirect
HOC to redirect to any URL in NextJS both in client and server
Stars: ✭ 144 (+500%)
Mutual labels:  dynamic
satimage
Code and models for the manuscript "Predicting Poverty and Developmental Statistics from Satellite Images using Multi-task Deep Learning"
Stars: ✭ 27 (+12.5%)
Mutual labels:  prediction
MachineLearning
An easy neural network for Java!
Stars: ✭ 125 (+420.83%)
Mutual labels:  prediction
MediCare-Prime
Prediction or detection of various medical ailments
Stars: ✭ 19 (-20.83%)
Mutual labels:  prediction
PopEcoModeling
Online course on statistical modeling in population ecology. Includes instructional videos with associated code and data.
Stars: ✭ 26 (+8.33%)
Mutual labels:  survival
venusscript
A dynamic, interpreted, scripting language written in Java.
Stars: ✭ 17 (-29.17%)
Mutual labels:  dynamic
pygna
A Python package for gene network analysis
Stars: ✭ 25 (+4.17%)
Mutual labels:  biostatistics
Market-Trend-Prediction
This is a project of build knowledge graph course. The project leverages historical stock price, and integrates social media listening from customers to predict market Trend On Dow Jones Industrial Average (DJIA).
Stars: ✭ 57 (+137.5%)
Mutual labels:  prediction
STOCK-RETURN-PREDICTION-USING-KNN-SVM-GUASSIAN-PROCESS-ADABOOST-TREE-REGRESSION-AND-QDA
Forecast stock prices using machine learning approach. A time series analysis. Employ the Use of Predictive Modeling in Machine Learning to Forecast Stock Return. Approach Used by Hedge Funds to Select Tradeable Stocks
Stars: ✭ 94 (+291.67%)
Mutual labels:  prediction
stremr
Streamlined Estimation for Static, Dynamic and Stochastic Treatment Regimes in Longitudinal Data
Stars: ✭ 33 (+37.5%)
Mutual labels:  survival
cqr
Conformalized Quantile Regression
Stars: ✭ 152 (+533.33%)
Mutual labels:  prediction

joineRML

R build status AppVeyor Build Status

CRAN_Status_Badge codecov Research software impact DOI

joineRML is an extension of the joineR package for fitting joint models of time-to-event data and multivariate longitudinal data. The model fitted in joineRML is an extension of the Wulfsohn and Tsiatis (1997) and Henderson et al. (2000) models, which is comprised of (K+1)-sub-models: a Cox proportional hazards regression model (Cox, 1972) and a K-variate linear mixed-effects model - a direct extension of the Laird and Ware (1982) regression model. The model is fitted using a Monte Carlo Expectation-Maximization (MCEM) algorithm, which closely follows the methodology presented by Lin et al. (2002).

Why use joineRML?

As noted in Hickey et al. (2016), there is a lack of statistical software available for fitting joint models to multivariate longitudinal data. This is contrary to a growing methodology in the statistical literature. joineRML is intended to fill this void.

Example

The main workhorse function is mjoint. As a simple example, we use the heart.valve dataset from the package and fit a bivariate joint model.

library(joineRML)
data(heart.valve)
hvd <- heart.valve[!is.na(heart.valve$log.grad) & !is.na(heart.valve$log.lvmi), ]

set.seed(12345)
fit <- mjoint(
    formLongFixed = list("grad" = log.grad ~ time + sex + hs,
                         "lvmi" = log.lvmi ~ time + sex),
    formLongRandom = list("grad" = ~ 1 | num,
                          "lvmi" = ~ time | num),
    formSurv = Surv(fuyrs, status) ~ age,
    data = list(hvd, hvd),
    timeVar = "time")

The fitted model is assigned to fit. We can apply a number of functions to this object, e.g. coef, logLik, plot, print, ranef, fixef, summary, AIC, getVarCov, vcov, confint, sigma, update, formula, resid, and fitted. In addition, several special functions have been added, including dynSurv, dynLong, and baseHaz, as well as plotting functions for objects inheriting from the dynSurv, dynLong, ranef, and mjoint functions. For example,

summary(fit)
plot(fit, param = 'gamma')

mjoint automatically estimates approximate standard errors using the empirical information matrix (Lin et al., 2002), but the bootSE function can be used as an alternative.

Errors and updates

If you spot any errors or wish to see a new feature added, please file an issue at https://github.com/graemeleehickey/joineRML/issues or email Graeme Hickey.

Further learning

For an overview of the model estimation being performed, please see the technical vignette, which can be accessed by

vignette('technical', package = 'joineRML')

For a demonstration of the package, please see the introductory vignette, which can be accessed by

vignette('joineRML', package = 'joineRML')

Funding

This project is funded by the Medical Research Council (Grant number MR/M013227/1).

Using the latest developmental version

To install the latest developmental version, you will need R version (version 3.3.0 or higher) and some additional software depending on what platform you are using.

Windows

If not already installed, you will need to install Rtools. Choose the version that corresponds to the version of R that you are using.

Mac OSX

If not already installed, you will need to install Xcode Command Line Tools. To do this, open a new terminal and run

$ xcode-select --install

From R

The latest developmental version will not yet be available on CRAN. Therefore, to install it, you will need devtools. You can check you are using the correct version by running

Once the prerequisite software is installed, you can install joineRML by running the following command in an R console

library('devtools')
install_github('graemeleehickey/joineRML')

Compatibility with broom

Tidiers methods for objects of class mjoint (i.e. models fit with joineRML) are included in the broom package; this provides methods that allow extracting model estimates, predictions, and comparing models in a straightforward way.

See vignette(topic = "joineRML-broom", package = "joineRML") for further details and examples.

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. Lin H, McCulloch CE, Mayne ST. Maximum likelihood estimation in the joint analysis of time-to-event and multiple longitudinal variables. Stat Med. 2002; 21: 2369-2382.

  6. Wulfsohn MS, Tsiatis AA. A joint model for survival and longitudinal data measured with error. Biometrics. 1997; 53(1): 330-339.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].