View source: R/ampute.discrete.R
ampute.discrete  R Documentation 
This function creates a missing data indicator for each pattern. Odds probabilities
(Brand, 1999, pp. 110113) will be induced on the weighted sum scores, calculated earlier
in the multivariate amputation function ampute
.
ampute.discrete(P, scores, prop, odds)
P 
A vector containing the pattern numbers of candidates. For each case, a value between 1 and #patterns is given. For example, a case with value 2 is candidate for missing data pattern 2. 
scores 
A list containing vectors with the candidates's weighted sum scores,
the result of an underlying function in 
prop 
A scalar specifying the proportion of missingness. Should be a value between 0 and 1. Default is a missingness proportion of 0.5. 
odds 
A matrix where #patterns defines the #rows. Each row should contain
the odds of being missing for the corresponding pattern. The amount of odds values
defines in how many quantiles the sum scores will be divided. The values are
relative probabilities: a quantile with odds value 4 will have a probability of
being missing that is four times higher than a quantile with odds 1. The
#quantiles may differ between the patterns, specify NA for cells remaining empty.
Default is 4 quantiles with odds values 1, 2, 3 and 4, the result of

A list containing vectors with 0
if a case should be made missing
and 1
if a case should remain complete. The first vector refers to the
first pattern, the second vector to the second pattern, etcetera.
Rianne Schouten, 2016
Brand, J.P.L. (1999). Development, implementation and evaluation of multiple imputation strategies for the statistical analysis of incomplete data sets. Dissertation. Rotterdam: Erasmus University.
ampute
, ampute.default.odds
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.