Science Score: 26.0%

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

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.0%) to scientific vocabulary

Keywords

missing-data multiple-imputation
Last synced: 6 months ago · JSON representation

Repository

Basic Info
Statistics
  • Stars: 7
  • Watchers: 1
  • Forks: 4
  • Open Issues: 0
  • Releases: 1
Topics
missing-data multiple-imputation
Created over 2 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog License

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

# midoc


[![R-CMD-check](https://github.com/elliecurnow/midoc/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/elliecurnow/midoc/actions/workflows/R-CMD-check.yaml)
[![CRAN status](https://www.r-pkg.org/badges/version/midoc)](https://CRAN.R-project.org/package=midoc)


## Overview

The Multiple Imputation DOCtor (`midoc`) R package is a guidance system for analysis with missing data. It incorporates expert, up-to-date methodology to help you choose the most appropriate analysis method when there are missing data. By examining the available data and the assumed causal structure, `midoc` will advise whether multiple imputation is needed, and if so, how best to perform it. 

* `descMissData` lists missing data patterns in the specified dataset

* `exploreDAG` compares the relationships in the available data with the proposed DAG

* `checkCRA` checks complete records analysis is valid under the proposed analysis model 

* `checkMI` checks multiple imputation is valid under the proposed imputation model 

* `checkModSpec` explores the parametric specification of the imputation model 

* `proposeMI` suggests multiple imputation options based on the available data and specified imputation model

* `doMImice` performs multiple imputation based on the `proposeMI` options 

You can learn more about these commands in `vignette("midoc","midoc")`.

## Installation

You can install the development version of midoc from [GitHub](https://github.com/) with:

``` r
# install.packages("devtools")
devtools::install_github("elliecurnow/midoc")
```
## Usage

```{r}
library(midoc)

head(bmi)

descMissData(y="bmi7", covs="matage mated", data=bmi, plot=TRUE)

exploreDAG(mdag=" matage -> bmi7 
                  mated -> matage 
                  mated -> bmi7 
                  sep_unmeas -> mated 
                  sep_unmeas -> r
                  pregsize -> bmi7 
                  pregsize -> bwt  
                  sep_unmeas -> bwt", 
           data=bmi)

checkCRA(y="bmi7", covs="matage mated", r_cra="r",
         mdag="   matage -> bmi7 
                  mated -> matage 
                  mated -> bmi7 
                  sep_unmeas -> mated 
                  sep_unmeas -> r
                  pregsize -> bmi7 
                  pregsize -> bwt  
                  sep_unmeas -> bwt")

checkMI(dep="bmi7", preds="matage mated pregsize", r_dep="r",
        mdag="    matage -> bmi7 
                  mated -> matage 
                  mated -> bmi7 
                  sep_unmeas -> mated 
                  sep_unmeas -> r
                  pregsize -> bmi7 
                  pregsize -> bwt  
                  sep_unmeas -> bwt")

mimod_bmi7 <- checkModSpec(formula="bmi7~matage+I(matage^2)+mated+pregsize",
                           family="gaussian(identity)", data=bmi)

miprop <- proposeMI(mimodobj=mimod_bmi7, data=bmi)

doMImice(miprop, 123, substmod="lm(bmi7 ~ matage + I(matage^2) + mated)")

```

```{r, include=FALSE}
#You'll still need to render `README.Rmd` regularly, to keep `README.md` up-to-date. `devtools::build_readme()` is handy for this.

#You can also embed plots, for example:

```


Owner

  • Login: elliecurnow
  • Kind: user

GitHub Events

Total
  • Watch event: 1
  • Issue comment event: 1
  • Push event: 12
  • Pull request event: 6
  • Fork event: 2
  • Create event: 3
Last Year
  • Watch event: 1
  • Issue comment event: 1
  • Push event: 12
  • Pull request event: 6
  • Fork event: 2
  • Create event: 3

Issues and Pull Requests

Last synced: 6 months ago

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

Packages

  • Total packages: 1
  • Total downloads:
    • cran 195 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
cran.r-project.org: midoc

A Decision-Making System for Multiple Imputation

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 195 Last month
Rankings
Dependent packages count: 28.1%
Dependent repos count: 34.6%
Average: 49.8%
Downloads: 86.6%
Maintainers (1)
Last synced: 6 months ago