bivTable | R Documentation |
Create a table of conditional frequencies, relative frequencies, and odds for a single variable
bivTable(data, group, outcome, compare = FALSE, baseline = "")
data |
A data frame |
group |
Explanatory or row variable |
outcome |
A dichotomous outcome |
compare |
A logical variable indicating whether or not to compare conditional distributions |
baseline |
A baseline level of the row/explanatory group; required if compare = TRUE |
bivTable(data = carData::GSSvocab, group = ageGroup, outcome = nativeBorn)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.