View source: R/egg_correlations.R
egg_correlations | R Documentation |
egg_model()
.Based on computed area under the curves (i.e., egg_aucs()
)
and slopes (i.e., egg_slopes()
) for several intervals using
a model fitted by egg_model()
, compute the correlations between
each intervals derived parameters.
egg_correlations(
fit,
period = c(0, 0.5, 1.5, 3.5, 6.5, 10, 12, 17),
knots = c(1, 8, 12),
start = 0.25,
end = 10,
step = 0.01,
filter = NULL
)
fit |
A model object from a statistical model
such as from a call to |
period |
The intervals knots on which slopes are to be computed. |
knots |
The knots as defined |
start |
The start of the time window to compute AP and AR. |
end |
The end of the time window to compute AP and AR. |
step |
The step to increment the sequence. |
filter |
A string following |
A data.table
object with correlations between each intervals derived parameters.
data("bmigrowth")
res <- egg_model(
formula = log(bmi) ~ age,
data = bmigrowth[bmigrowth[["sex"]] == 0, ],
id_var = "ID",
random_complexity = 1
)
egg_correlations(
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.