Analysis of Longitudinal Electronic Health Record (EHR) Data with Possibly Informative Observational Time

Analyzes longitudinal Electronic Health Record (EHR) data with possibly informative observational time. These methods are grouped into two classes depending on the inferential task. One group focuses on estimating the effect of an exposure on a longitudinal biomarker while the other group assesses the impact of a longitudinal biomarker on time-to-diagnosis outcomes. The accompanying paper is Du et al (2024) .


CIMPLE

The goal of CIMPLE is to offer a collection of methods involved with analyzing longitudinal EHR data with possibly informative observational time. These methods are grouped into two classes depending on the inferential task. One group focuses on estimating the effect of an exposure on a longitudinal biomarker while the other group assesses the impact of a longitudinal biomarker on time-to-diagnosis outcomes.

Installation

You can install the development version of CIMPLE from GitHub with:

# install.packages("pak")
pak::pak("jiacongD/CIMPLE")

Example

A very basic workflow:

library(CIMPLE)

time_var = "time"
id_var = "id"
outcome_var = "Y"
VPM_variables = c("Z", "X")
LM_fixedEffect_variables = c("Z", "X")
LM_randomEffect_variables = "Z"

# Run the standard LME model
fit_standardLME = long_est(
  long_data = train_data,
  method = "standard_LME",
  id_var = id_var,
  outcome_var = outcome_var,
  LM_fixedEffect_variables = LM_fixedEffect_variables,
  time = time_var,
  LM_randomEffect_variables = LM_randomEffect_variables,
  VPM_variables = VPM_variables
)
#> Warning in checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv, :
#> unable to evaluate scaled gradient
#> Warning in checkConv(attr(opt, "derivs"), opt$par, ctrl = control$checkConv, :
#> Model failed to converge: degenerate Hessian with 1 negative eigenvalues

# Return the coefficient estimates
fit_standardLME$beta_hat
#> (Intercept)           Z           X        time 
#> -2.18544419 -0.47282269  0.59100042  0.09982721

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("CIMPLE")

0.1.0 by Howard Baik, 2 years ago


Browse source code at https://github.com/cran/CIMPLE


Authors: Jiacong Du [aut] , Howard Baik [cre]


Documentation:   PDF Manual  


GPL (>= 3) license


Imports dplyr, JMbayes2, lme4, mice, nleqslv, nlme, statmod, stats, survival, utils


See at CRAN