View source: R/ard_regression_basic.R
ard_regression_basic | R Documentation |
A function that takes a regression model and provides basic statistics in an
ARD structure.
The default output is simpler than ard_regression()
.
The function primarily matches regression terms to underlying variable names
and levels.
The default arguments used are
broom.helpers::tidy_plus_plus( add_reference_rows = FALSE, add_estimate_to_reference_rows = FALSE, add_n = FALSE, intercept = FALSE )
ard_regression_basic(x, ...)
## Default S3 method:
ard_regression_basic(
x,
tidy_fun = broom.helpers::tidy_with_broom_or_parameters,
stats_to_remove = c("term", "var_type", "var_label", "var_class", "label",
"contrasts_type", "contrasts", "var_nlevels"),
...
)
## S3 method for class 'data.frame'
ard_regression_basic(
x,
formula,
method,
method.args = list(),
package = "base",
tidy_fun = broom.helpers::tidy_with_broom_or_parameters,
stats_to_remove = c("term", "var_type", "var_label", "var_class", "label",
"contrasts_type", "contrasts", "var_nlevels"),
...
)
x |
(regression model/ |
... |
Arguments passed to |
tidy_fun |
( |
stats_to_remove |
( |
formula |
( |
method |
( |
method.args |
(named Note that this list may contain non-standard evaluation components.
If you are wrapping this function in other functions, the argument
must be passed in a way that does not evaluate the list, e.g.
using rlang's embrace operator |
package |
( |
data frame
lm(AGE ~ ARM, data = cards::ADSL) |>
ard_regression_basic()
ard_regression_basic(
x = cards::ADSL,
formula = AGE ~ ARM,
method = "lm"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.