Description Usage Arguments Value Examples
View source: R/Missing_simulation.R
Simulates missing at random using a normal copula to create correlations between the missing (type="MAR"). Missings appear in each column of the provided data frame with the same ratio.
1 |
dat |
Data frame with only numeric values |
p |
Fraction of missings (for entire data frame) |
type |
Type of missingness. Either MCAR (=missing completely at random) or MAR (=missing at random) |
seed_nr |
Number for set.seed() |
data frame with only numeric values and NAs
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.