Package: JointAI 1.0.6

Nicole S. Erler

JointAI: Joint Analysis and Imputation of Incomplete Data

Joint analysis and imputation of incomplete data in the Bayesian framework, using (generalized) linear (mixed) models and extensions there of, survival models, or joint models for longitudinal and survival data, as described in Erler, Rizopoulos and Lesaffre (2021) <doi:10.18637/jss.v100.i20>. Incomplete covariates, if present, are automatically imputed. The package performs some preprocessing of the data and creates a 'JAGS' model, which will then automatically be passed to 'JAGS' <https://mcmc-jags.sourceforge.io/> with the help of the package 'rjags'.

Authors:Nicole S. Erler [aut, cre]

JointAI_1.0.6.tar.gz
JointAI_1.0.6.tar.gz(r-4.5-noble)JointAI_1.0.6.tar.gz(r-4.4-noble)
JointAI_1.0.6.tgz(r-4.4-emscripten)JointAI_1.0.6.tgz(r-4.3-emscripten)
JointAI.pdf |JointAI.html
JointAI/json (API)
NEWS

# Install 'JointAI' in R:
install.packages('JointAI', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/nerler/jointai/issues

Pkgdown site:https://nerler.github.io

Uses libs:
  • jags– Just Another Gibbs Sampler for Bayesian MCMC
  • c++– GNU Standard C++ Library v3
Datasets:
  • NHANES - National Health and Nutrition Examination Survey (NHANES) Data
  • PBC - PBC data
  • longDF - Longitudinal example dataset
  • simLong - Simulated Longitudinal Data in Long and Wide Format
  • simWide - Simulated Longitudinal Data in Long and Wide Format
  • wideDF - Cross-sectional example dataset

jagscpp

4.85 score 1 packages 59 scripts 505 downloads 2 mentions 43 exports 41 dependencies

Last updated 9 months agofrom:97d895bfdb. Checks:OK: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKDec 29 2024
R-4.5-linuxOKDec 29 2024

Exports:add_samplesall_varsbetamm_impbetareg_impbsclean_survnameclm_impclmm_impcoxph_impdefault_hyperparsdensplotextract_stateget_familyget_MIdatget_missinfoget_Mlistget_modeltypeglm_impglme_impglmer_impGR_critJM_implist_modelslm_implme_implmer_implognorm_implognormmm_impMC_errormd_patternmlogit_impmlogitmm_impnsparametersplot_allplot_imp_distrpredDFrd_vcovset_refcatsum_durationSurvsurvreg_imptraceplot

Dependencies:briocallrclicodacodetoolscrayondescdiffobjdigestellipseevaluatefftwtoolsfsfutureglobalsgluejsonlitelatticelifecyclelistenvmagrittrMASSmathjaxrMatrixmcmcseparallellypkgbuildpkgloadpraiseprocessxpsR6RcppRcppArmadillorjagsrlangrprojrootsurvivaltestthatwaldowithr

After Fitting

Rendered fromAfterFitting.Rmdusingknitr::rmarkdownon Dec 29 2024.

Last update: 2022-09-03
Started: 2018-12-04

MCMC Settings

Rendered fromMCMCsettings.Rmdusingknitr::rmarkdownon Dec 29 2024.

Last update: 2022-09-03
Started: 2018-12-04

Model Specification

Rendered fromModelSpecification.Rmdusingknitr::rmarkdownon Dec 29 2024.

Last update: 2022-09-03
Started: 2018-08-14

Parameter Selection

Rendered fromSelectingParameters.Rmdusingknitr::rmarkdownon Dec 29 2024.

Last update: 2022-09-03
Started: 2018-08-14

Readme and manuals

Help Manual

Help pageTopics
Continue sampling from an object of class JointAIadd_samples
Convert a survival outcome to a model nameclean_survname
Get the default values for hyper-parametersdefault_hyperpars
Plot the posterior density from object of class JointAIdensplot densplot.JointAI
Return the current state of a 'JointAI' modelextract_state
Extract multiple imputed datasets from an object of class JointAIget_MIdat
Obtain a summary of the missing values involved in an object of class JointAIget_missinfo
Gelman-Rubin criterion for convergenceGR_crit
JointAI: Joint Analysis and Imputation of Incomplete DataJointAI
Fitted object of class 'JointAI'JointAIObject
List model detailslist_models
Longitudinal example datasetlongDF
Calculate and plot the Monte Carlo errorMC_error plot.MCElist
Missing data patternmd_pattern
Joint Analysis and Imputation of incomplete databetamm_imp betareg_imp clmm_imp clm_imp coxph_imp glmer_imp glme_imp glm_imp JM_imp lmer_imp lme_imp lm_imp lognormmm_imp lognorm_imp mlogitmm_imp mlogit_imp model_imp survreg_imp
National Health and Nutrition Examination Survey (NHANES) DataNHANES
Parameter names of an JointAI objectparameters
PBC dataPBC
Visualize the distribution of all variables in the datasetplot_all
Plot the distribution of observed and imputed valuesplot_imp_distr
Plot an object object inheriting from class 'JointAI'plot.JointAI
Predict values from an object of class JointAIpredict.JointAI
Summarize the results from an object of class JointAIcoef.JointAI confint.JointAI print.Dmat print.JointAI print.summary.JointAI summary.JointAI
Extract the random effects variance covariance matrix Returns the posterior mean of the variance-covariance matrix/matrices of the random effects in a fitted JointAI object.rd_vcov
Extract residuals from an object of class JointAIresiduals.JointAI
Specify reference categories for all categorical covariates in the modelset_refcat
Parameters used by several functions in JointAIsharedParams
Simulated Longitudinal Data in Long and Wide FormatsimLong simWide
Calculate the sum of the computational duration of a JointAI objectsum_duration
Create traceplots for a MCMC sampletraceplot traceplot.JointAI
Cross-sectional example datasetwideDF