View source: R/simulation_functions.R
simulate_missingness | R Documentation |
Title simulate_missingness Uses the simulated data to create the different types of missingness (MCAR,MNAR,MAR) using different percentages of missigness
simulate_missingness( data, mcar = 0, mar = 0, mnar = 0, mnar.type = "left", mar.type = "left" )
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 |
simulated_data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.