makeMissing: makeMissing

Description Usage Arguments

Description

This function take a complete dataset and generates missingness

Usage

1
2
makeMissing(outcomeType, mechanism, numSamp, propMiss, rr, df, beta0, beta1,
  beta2, xmean)

Arguments

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


calebki/rctmiss documentation built on May 3, 2019, 2:56 p.m.