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.
Usage
miss_sim(dat, p = 0.2, type = "MAR", seed_nr = 123)
Arguments
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)