View source: R/grouped_generics.R
grouped_augment | R Documentation |
Augmented data from grouped analysis of any function that has
data
argument in its function call.
grouped_augment(data, grouping.vars, ..f, ..., augment.args = list())
data |
Dataframe (or tibble) from which variables are to be taken. |
grouping.vars |
Grouping variables. |
..f |
A function, or function name as a string. |
... |
<dynamic> Arguments for |
augment.args |
A list of arguments to be used in the relevant |
A tibble::tibble()
with information about data points.
augment
set.seed(123) library(dplyr) # linear mixed effects model grouped_augment( data = mutate(MASS::Aids2, interval = death - diag), grouping.vars = sex, ..f = lme4::lmer, formula = interval ~ age + (1 | status), control = lme4::lmerControl(optimizer = "bobyqa") )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.