Description Usage Arguments Value Methods (by class) See Also Examples
Calculate the standardized differences (percentages).
1 2 3 4 5 6 | standardized_differences(x, ...)
## S3 method for class 'pstools_std_diffs'
plot(x, adj_methods = c("adj_IPW",
"adj_ACE_Exposed", "adj_ACE_Unexposed", "adj_ACE_MostInfo", "adj_ACE_MWP"),
...)
|
x |
a logistic regression object, or a |
... |
ignored at this time. |
adj_methods |
a character vector, names standardized differences adjustment methods to include in the plot. |
A list of data.frame
s each element of the list is for a
different weighting method.
pstools_std_diffs
: plotting method for
pstools_std_diffs
objects.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | data(pride)
glmfit <- stats::glm(PCR_RSV ~ SEX + RSVINF + REGION + AGE + ELTATOP + EINZ + EXT,
data = pride,
family = stats::binomial())
std_diff <- standardized_differences(glmfit)
std_diff
# the plot is a ggplot2 object
plot(std_diff)
plot(std_diff, adj_methods = "adj_ACE_MWP") +
ggplot2::ggtitle("ACE MWP vs Unadjusted")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.