logodds_graph {dvmisc} | R Documentation |
Graph Log-Odds of Binary Variable Across A Grouping Variable
Description
Creates plot showing sample log-odds of binary Y variable across levels of a
grouping variable, with customizable error bars. Observations with missing
values for y
and/or group
are dropped.
Usage
logodds_graph(y, group, error.bars = "none", alpha = 0.05,
p.legend = "chi", plot.list = NULL, lines.list = NULL,
axis.list = NULL, legend.list = NULL, ...)
Arguments
y |
Vector of values for binary response variable. Must take on 2
values, but can be any type (e.g. numeric, character, factor, logical).
Function plots log-odds of second value returned by |
group |
Vector of values indicating what group each |
error.bars |
Character string indicating what the error bars should
represent. Possible values are |
alpha |
Numeric value indicating what alpha should be set to for
confidence intervals. Only used if |
p.legend |
Character string controlling what p-value is printed in a
legend. Possible values are |
plot.list |
Optional list of inputs to pass to
|
lines.list |
Optional list of inputs to pass to
|
axis.list |
Optional list of inputs to pass to
|
legend.list |
Optional list of inputs to pass to
|
... |
Additional arguments to pass to |
Value
Plot showing log-odds of y
across levels of group
.