mp_x0: conditional missing probability for missing at random

Description Usage Arguments Details Value Examples

View source: R/mp_x0.R

Description

calculates probability of missing conditional on x=0

Usage

1
2
mp_x0(do_tar, p_y1, mp_x1, xs_ass = c("strong", "weak"), xs_y0 = 0.6,
  xs_y1 = 0.2, xw = 0.6)

Arguments

do_tar

numeric, target dro-out rate

p_y1

numeric, probability of y=1

mp_x1

numeric, missing probability conditional on x=1

xs_ass

character, Default: c("strong", "weak")

xs_y0

numeric, Default: 0.6, for strong correlation between x and y, define conditional probability of x given y=0

xs_y1

numeric, Default: 0.2, for strong correlation between x and y, define conditional probability of x given y=1

xw

numeric, Default: 0.6, for weak correlation between x and y, define prrobability of x (irrespective of the value of y)

Details

DETAILS

Value

nymeric, conditional probability of missing when x=1

Examples

1
mp_x0(do_tar = 0.3, p_y1 = 0.65, mp_x1 = 0.4, xs_ass = 'strong')

yuliasidi/bin2mi documentation built on March 11, 2021, 8:10 p.m.