This function take a complete dataset and generates missingness
1 2 | makeMissing(outcomeType, mechanism, numSamp, propMiss, rr, df, beta0, beta1,
beta2, xmean)
|
outcomeType |
Is the outcome variable binary or continuous? |
mechanism |
What is the missing data mechanism? |
numSamp |
Number of observations in the sample |
propMiss |
Expected proportion of missingness |
rr |
Risk ratio |
df |
The complete dataframe |
beta0 |
Intercept |
beta1 |
Treatment effect |
beta2 |
Slope of auxiliary variable |
xmean |
Mean of auxiliary variable |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.