| Title: | Robust Median-Based Bayesian Growth Curve Modeling |
|---|---|
| Description: | Implements robust median-based Bayesian linear growth curve models for complete data and for data with Missing Completely at Random (MCAR), Missing At Random (MAR), or Missing Not At Random (MNAR) mechanisms. Models are fitted using 'rjags' through 'JAGS' and posterior summaries are computed with 'coda'. The main function allows users to specify outcome variables, auxiliary variables for MNAR missingness models, prior hyperparameters, and initial values directly through function arguments. |
| Authors: | Dandan Tang [aut, cre] (ORCID: <https://orcid.org/0009-0007-3453-9660>), Xin Tong [aut] |
| Maintainer: | Dandan Tang <[email protected]> |
| License: | GPL-3 |
| Version: | 0.2.0 |
| Built: | 2026-10-04 10:00:17 UTC |
| Source: | https://github.com/dandantang0/romeb |
A character string containing the JAGS model specification for complete data (no missing values), MCAR, and MAR.
modelmodel
A character string.
JAGS model definition for data with MNAR mechanism.
model_MNARmodel_MNAR
A character string.
JAGS model definition for MNAR mechanism with auxiliary variable k.
model_MNAR_kmodel_MNAR_k
A character string.
A real data set from the 1976–1980 National Youth Survey of U.S. youth.
NYSNYS
A data frame with 1,725 rows and 7 variables:
Participant age (years)
Gender (0 = female, 1 = male)
Attitude toward social deviance, wave 1
Attitude toward social deviance, wave 2
Attitude toward social deviance, wave 3
Attitude toward social deviance, wave 4
Attitude toward social deviance, wave 5
National Youth Survey, waves 1976–1980 (downloadable at https://www.icpsr.umich.edu/icpsrweb/ICPSR/series/88)
Implements robust median-based Bayesian growth-curve models that handle MCAR/MAR/MNAR missing-data mechanisms and complete data. Models are fitted via rjags/JAGS and summarized with coda.
Fits a median-based Bayesian growth curve model under MCAR, MAR,
MNAR or complete-data assumptions. If K > 0 the first
K columns in data are treated as auxiliary variables.
Romeb( Missing_Type, data, time, seed, K = 0, chain = 1, Niter = 6000, burnIn = 3000 )Romeb( Missing_Type, data, time, seed, K = 0, chain = 1, Niter = 6000, burnIn = 3000 )
Missing_Type |
Character; one of |
data |
Matrix or data frame containing outcome columns (and optionally auxiliary variables). |
time |
Numeric vector of measurement times (e.g., c(0,1,2,3)). |
seed |
Integer seed for reproducibility. |
K |
Integer; number of auxiliary variables (default 0). |
chain |
Integer; number of MCMC chains (default 1). |
Niter |
Integer; iterations per chain (default 6000). |
burnIn |
Integer; burn-in iterations (default 3000). |
An object of class RomebResult containing
posterior means, SDs and quantiles
Geweke z-scores
95% equal-tail credible intervals
95% highest posterior density intervals
full coda::mcmc.list (including burn-in)
Maintainer: Dandan Tang [email protected] (ORCID)
Authors:
Xin Tong
Useful links:
set.seed(123) Y <- matrix(rnorm(300), 100, 3) fit <- Romeb("no missing", data = Y, time = c(0,1,2), seed = 123, K = 0, Niter = 6000, burnIn = 3000) print(fit)set.seed(123) Y <- matrix(rnorm(300), 100, 3) fit <- Romeb("no missing", data = Y, time = c(0,1,2), seed = 123, K = 0, Niter = 6000, burnIn = 3000) print(fit)