est4comparisonDS: Generates the information required to compute estimates for...

Description Usage Arguments Details Value Author(s)

Description

Generates summaries required for the comparison of two binary or quantitative variables.

Usage

1

Arguments

formula

a formula that that specifies the two variables.

data

the dataframe that holds the variables.

vartype

the type of the two variables: 'binary' or 'qtl'.

Details

For dichotomous variables: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. For quantitative variables: generates a contingency table and puts the mean, sd and length values in a vector. The ouput of this function can be used for example in the calculations of: raw mean difference, standardized mean difference and other measures.

Value

a numeric vector, the values in the 2x2 contingency table (for two binaries) or the mean, sd and lengths of each of the two quantitative vectors.

Author(s)

Gaye, A.


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