estComp2binDS: Compute cells frequencies for two dichotomous variables...

Description Usage Arguments Details Value Author(s)

Description

helps to computes measures for two-group compaparison with two binary variables.

Usage

1

Arguments

formula

a formula that that indicates the outcome and explanatory variable

data

the dataframe that holds the variables.

Details

generates a 2x2 table and puts the cell frequencies in a vector. Cell counts smaller than the allowed minimum count are replaced by 0. The ouput of this function can be used for example in the calculations of: log relative risk, log odds ratio and risk difference.

Value

a numeric vector, the values 2x2 contingency table.

Author(s)

Gaye, A.


datashield/dsMeta documentation built on May 14, 2019, 7:50 p.m.