dt_p2: creates dataset for two binomial proportions

Description Usage Arguments Details Value See Also Examples

View source: R/dt_p2.R

Description

creates dataset for two binomial proportions

Usage

1
2
dt_p2(n, pc, pt, add_x = FALSE, xs_y0 = 0.6, xs_y1 = 0.2, xw = 0.6,
  add_xcont = FALSE)

Arguments

n

integer, number of observation per group, 1:1 ratio assumed

pc

numeric, probability of event in group 'c'

pt

numeric, probability of event in group 't'

add_x

logic, Default: FALSE, specifies whether to add binarry variable x

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)

add_xcont

logic, Default: FALSE, specifies whether to add continuous variable x

Details

DETAILS

Value

OUTPUT_DESCRIPTION

See Also

Binomial map

Examples

1
dt_p2(100, 0.7, 0.65, add_x = TRUE)

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