Skip to content

Dynamic predictions using joint models of two longitudinal outcomes and competing risk data.

Notifications You must be signed in to change notification settings

ERandrinopoulou/DynamicPredJMmultiOutcomes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DynamicPredJMmultiOutcomes

Dynamic predictions using joint models of two longitudinal outcomes and competing risk data.

This repository includes the code for (1) modeling multiple longitudinal (1 continuous and 1 ordinal) and competing risk survival outcomes and (2) dynamic predictions. The underlying value for the association parameter is assumed.

Specifically:

  • "data.id1.Rdata" / "data1.Rdata": include simulated data for the longitudinal and survival outcomes ("data.id" and "data").
  • "Functions": includes functions needed for the code.
  • "ModelJAGS": includes the joint model for jags.
  • "PrepareData": includes the preparation of the data.
  • "Fit": includes the main code. Specifically, it loads the packages and the data, runs the functions, creates the model, runs the model in JAGS and saves the results.
  • "DynPred": has the code to run the dynamic preditions assuming the underlying value for the association parameter.

How does it work:

  • Download all files and place them in one folder.
  • Set as working directory in R this folder.
  • Run the code in "Fit" for fitting the joint model.
  • Run the code in "DynPred" for obtaining dynamic predictions.

About

Dynamic predictions using joint models of two longitudinal outcomes and competing risk data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages