MyNixOS website logo
Description

Simultaneously Impute the Missing and Censored Values.

Implementing a multiple imputation algorithm for multivariate data with missing and censored values under a coarsening at random assumption (Heitjan and Rubin, 1991<doi:10.1214/aos/1176348396>). The multiple imputation algorithm is based on the data augmentation algorithm proposed by Tanner and Wong (1987)<doi:10.1080/01621459.1987.10478458>. The Gibbs sampling algorithm is adopted to to update the model parameters and draw imputations of the coarse data.

mvnimpute

The goal of mvnimpute package is to implement multiple imputation for the multivariate data with both missing and censored values (a single variable can have both missing and censored values simultaneously; or it can have either only missing or censored values). An example of application of this package is for imputing the NHANES laboratory measurement data that are subject to both missing values and limits of detection (LODs).

Installation

For Windows users, the Rtools for building R packages has to be installed according to your R version from https://cran.r-project.org/bin/windows/Rtools/history.html.

From GitHub

NOTE: Some of the packages that this package depends on may require the latest version of R, it is recommended to update your R software to the latest version. The development version of the mvnimpute package can be installed from GitHub with:

For first-time users

# install the development package devtools for installing packages from GitHub
install.packages("devtools")

# install mvnimpute package from GitHub
devtools::install_github("hli226/mvnimpute")

You have to install the development package devtools for installing packages from GitHub. The packages that mvnimpute depends on will be automatically downloaded and installed.

Basic functions

It has 9 functions including

data.generation: generates multivariate normal data with missing and censored values.

visual.plot: draws plot showing percentages of missing, censored, and observed values.

marg.plot: draws marginal density plot for each variable.

multiple.imputation: multiply imputes data with missing and censored values.

conv.plot: draws convergence plot of the parameters from the multiple imputation.

avg.plot: draws convergence plot of the averaged values of the parameters from the multiple imputation.

acf.calc: calculates the autocorrelation values and draws ACF plots.

nhanes.dat: A subset of the 1999-2004 NHANES data with selected variables including diastolic blood pressure, gender, age and body mass index.

simulated.dat: A simulated dataset of sample size 200 with missing and left censored values.

Acknowlegements

This package is based on the work supported by the National Institute of Environmental Health Sciences (NIEHS) under grant 1R01ES028790.

Metadata

Version

1.0.1

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows