remiod

R package for controlled multiple imputation of ordinal or binary responses with missing data in clinical study

https://github.com/xsswang/remiod

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 8 DOI reference(s) in README
  • Academic publication links
    Links to: arxiv.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (18.4%) to scientific vocabulary

Keywords

bayesian control-based copy-reference delta-adjustment generalized-linear-models glm jags jump-to-reference mcmc missing-at-random missing-data missing-not-at-random multiple-imputation non-ignorable ordinal-regression pattern-mixture-model r-package reference-based statistics
Last synced: 6 months ago · JSON representation

Repository

R package for controlled multiple imputation of ordinal or binary responses with missing data in clinical study

Basic Info
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 2
  • Releases: 2
Topics
bayesian control-based copy-reference delta-adjustment generalized-linear-models glm jags jump-to-reference mcmc missing-at-random missing-data missing-not-at-random multiple-imputation non-ignorable ordinal-regression pattern-mixture-model r-package reference-based statistics
Created almost 4 years ago · Last pushed about 3 years ago
Metadata Files
Readme License

README.Rmd

---
output: github_document
link-citation: yes
pkgdown:
   as_is:true
references:
- id: tang2017
  title: "Controlled pattern imputation for sensitivity analysis of longitudinal binary and ordinal outcomes with nonignorable dropout"
  author:
  - family: Tang
    given: Y
  container-title: Statistics in Medicine
  volume: 37
  URL: 'https://dx.doi.org/10.1002/sim.7583'
  DOI: 10.1002/sim.7583
  issue: 9
  page: 1467 -- 81
  type: article-journal
  issued:
    year: 2018
- id: Erler2021
  title: "JointAI: Joint Analysis and Imputation of Incomplete Data in R"
  author:
  - family: Erler
    given: NS
  - family: Rizopoulos
    given: D
  - family: Lesaffre
    given: EMEH
  container-title: Journal of Statistical Software
  volume: 100
  URL: 'https://dx.doi.org/10.18637/jss.v100.i20'
  DOI: 10.18637/jss.v100.i20
  issue: 20
  page: 1 -- 56
  type: article-journal
  issued:
    year: 2021
- id: wang2022
  title: "Remiod: Reference-based Controlled Multiple Imputation of Longitudinal Binary and Ordinal Outcomes with non-ignorable missingness"
  author:
  - family: Wang
    given: T
  - family: Liu
    given: Y
  container-title: arXiv
  volume: 2203.02771
  URL: 'https://arxiv.org/pdf/2203.02771'
  type: article-journal
  issued:
    year: 2022    
---



```{r, echo = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  fig.align = 'center'
)
```

# remiod: Reference-based Controlled Multiple Imputation of Longitudinal Binary and Ordinal Outcomes with non-ignorable missingness 


[![CRAN Status](https://www.r-pkg.org/badges/version/remiod)](https://CRAN.R-project.org/package=remiod)
[![CRAN Downloads](https://cranlogs.r-pkg.org/badges/remiod)](https://cran.r-project.org/package=remiod)
[![GPL-3.0](https://img.shields.io/github/license/xsswang/remiod?logo=GNU&logoColor=FFFFFF&style=flat-square)](https://github.com/xsswang/remiod/main/LICENSE)
[![R build
status](https://github.com/xsswang/remiod/workflows/R-CMD-check/badge.svg)](https://github.com/xsswang/remiod/actions)


The package **remiod** provides functionality to perform controlled multiple
imputation of binary and ordinal response in the Bayesian framework. Implemented are
(generalized) linear regression models for binary data and cumulative logistic models for
ordered categorical data [@wang2022]. It is also possible to fit multiple models of mixed types
simultaneously. Missing values in (if present) will be imputed automatically.

**remiod** has two algorithmic backend. One is [JAGS](https://mcmc-jags.sourceforge.io/), with which the function 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 R package [**rjags**](https://CRAN.R-project.org/package=rjags). The another is based on the method proposed by Tang [@tang2017].

Besides the main modelling functions, **remiod** also provides functions to summarize and visualize results.

    
## Installation

**remiod** Can be from [CRAN](https://cran.r-project.org/web/packages/remiod/index.html):
```{r cran-install, eval = FALSE}
install.packages("remiod")
```
Or, it can be installed from GitHub:
```{r gh-installation, eval = FALSE}
# install.packages("remotes")
remotes::install_github("xsswang/remiod")
```


## Main functions
**remiod** provides the following main functions:

``` r
remiod                      #processing data and implementing MCMC sampling
extract_MIdata              #extract imputed data sets
miAnalyze                   #Perform analyses using imputed data and pool results
```

Currently, methods **remiod** implements include  missing at random (`MAR`), jump-to-reference (`J2R`), copy reference (`CR`), and delta adjustment (`delta`). For `method = "delta"`, argument `delta` should follow to specify a numerical values used in delta adjustment. These methods can be requested through `extract_MIdata()`, and imputed datasets can be analyzed using `miAnalyze()`.

Functions `summary()`, `coef()`, and `mcmcplot()` provide a summary of the posterior distribution under MAR and its visualization.




## Minimal Example

```{r, eval = FALSE}

data(schizow)

test = remiod(formula = y6 ~ tx + y0 + y1 + y3, data = schizow,
              trtvar = 'tx', algorithm = 'jags', method="MAR",
              ord_cov_dummy = FALSE, n.adapt = 10, n.chains = 1,
              n.iter = 100, thin = 2, warn = FALSE, seed = 1234)

extdt = extract_MIdata(object=test, method="J2R",mi.setting=NULL, M=10, minspace=2)
result = miAnalyze(y6 ~ y1 + tx, data = extdt, pool = TRUE)

```

## Support
For any help with regards to using the package or if you find a bug please create a [GitHub issue](https://github.com/xsswang/remiod/issues).

## Reference

Owner

  • Login: xsswang
  • Kind: user

GitHub Events

Total
Last Year

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 65
  • Total Committers: 1
  • Avg Commits per committer: 65.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 5
  • Committers: 1
  • Avg Commits per committer: 5.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
xsswang x****g@g****m 65

Issues and Pull Requests

Last synced: 9 months ago

All Time
  • Total issues: 3
  • Total pull requests: 0
  • Average time to close issues: 6 days
  • Average time to close pull requests: N/A
  • Total issue authors: 2
  • Total pull request authors: 0
  • Average comments per issue: 1.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • HenrikBengtsson (2)
  • SusuXiong (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 311 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 3
  • Total maintainers: 1
cran.r-project.org: remiod

Reference-Based Multiple Imputation for Ordinal/Binary Response

  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 311 Last month
Rankings
Forks count: 28.8%
Dependent packages count: 29.8%
Stargazers count: 35.2%
Dependent repos count: 35.5%
Average: 37.2%
Downloads: 56.7%
Maintainers (1)
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • R >= 2.10 depends
  • JointAI * imports
  • Matrix * imports
  • coda * imports
  • data.table * imports
  • doFuture * imports
  • foreach * imports
  • future * imports
  • ggplot2 * imports
  • mathjaxr * imports
  • mcmcse * imports
  • ordinal * imports
  • progressr * imports
  • rjags * imports
  • survival * imports
  • R.rsp * suggests
  • bookdown * suggests
  • ggpubr * suggests
  • knitr * suggests
  • rmarkdown * suggests
  • spelling * suggests
  • testthat >= 3.0.0 suggests
.github/workflows/CI.yml actions
  • actions/checkout v2 composite
.github/workflows/R-CMD-check.yml actions
  • actions/checkout v2 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite