egg_aucs | R Documentation |
egg_model()
.Derived areas under the curve (AUCs) for differentintervals based
on a fitted cubic splines mixed-effects model from egg_model()
.
This function is a specific version of compute_aucs
designed to work specifically on egg_model()
.
egg_aucs(
fit,
period = c(0, 0.5, 1.5, 3.5, 6.5, 10, 12, 17),
knots = c(1, 8, 12)
)
fit |
A model object from a statistical model
such as from a call to |
period |
The intervals knots on which AUCs are to be computed. |
knots |
The knots as defined |
A data.frame
with AUC for each individuals/samples.
data("bmigrowth")
res <- egg_model(
formula = log(bmi) ~ age,
data = bmigrowth[bmigrowth[["sex"]] == 0, ],
id_var = "ID",
random_complexity = 1
)
head(
egg_aucs(
fit = res,
period = c(0, 0.5, 1.5, 3.5, 6.5, 10, 12, 17),
knots = c(1, 8, 12)
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.