accessors | R Documentation |
breg
objectsThese functions provide access to components of breg
objects, serving as counterparts
to the br_set_*()
functions. Some functions include additional arguments for extended
functionality.
br_get_data(obj)
br_get_y(obj)
br_get_x(obj)
br_get_n_x(obj)
br_get_x2(obj)
br_get_n_x2(obj)
br_get_group_by(obj)
br_get_config(obj)
br_get_models(obj)
br_get_model(obj, idx)
br_get_results(obj, tidy = FALSE, ...)
obj |
A |
idx |
Index or names (focal variables) of the model(s) to return. |
tidy |
If |
... |
Subset operations passing to |
Output depends on the function called:
br_get_data()
returns a data.frame
.
br_get_y()
, br_get_x()
, br_get_x2()
return modeling terms.
br_get_n_x()
and br_get_n_x2()
return the length of terms x
and x2
.
br_get_group_by()
returns variable(s) for group analysis.
br_get_config()
returns modeling method and extra arguments.
br_get_models()
returns all constructed models.
br_get_model()
returns a subset of constructed models.
br_get_results()
returns modeling result data.frame
.
pipeline for building breg
objects.
m <- br_pipeline(mtcars,
y = "mpg",
x = colnames(mtcars)[2:4],
x2 = "vs",
method = "gaussian"
)
br_get_data(m)
br_get_y(m)
br_get_x(m)
br_get_n_x(m)
br_get_x2(m)
br_get_n_x2(m)
br_get_group_by(m)
br_get_config(m)
br_get_models(m)
br_get_model(m, 1)
br_get_n_x2(m)
br_get_results(m)
br_get_results(m, tidy = TRUE)
br_get_results(m, tidy = TRUE, term == "cyl")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.