simulate_missingness: Title simulate_missingness Uses the simulated data to create...

View source: R/simulation_functions.R

simulate_missingnessR Documentation

Title simulate_missingness Uses the simulated data to create the different types of missingness (MCAR,MNAR,MAR) using different percentages of missigness

Description

Title simulate_missingness Uses the simulated data to create the different types of missingness (MCAR,MNAR,MAR) using different percentages of missigness

Usage

simulate_missingness(
  data,
  mcar = 0,
  mar = 0,
  mnar = 0,
  mnar.type = "left",
  mar.type = "left"
)

Arguments

data

matrix with simulated data

mcar

percenatge of missigness in Missing Completly at Random

mar

percenatge of missigness in Missing at Random

mnar

percenatge of missignessMisiing not at Random

mnar.type

type of truncation 'left' or right

mar.type

type of truncation

Value

simulated_data


BeanLabASU/metabimpute documentation built on Feb. 5, 2023, 11:41 p.m.