Skip to contents

EGG Longitudinal Analysis Workflow

Main functions to run EGG Longitudinal Analysis

run_eggla_lmm()
Perform EGG longitudinal analysis and derived areas under the curves and slopes.
run_eggla_gwas()
Perform GWAS using PLINK2 (and BCFtools)

Cubic Splines (Random Cubic/Linear Splines) Functions

Functions dedicated to work with cubic Splines mixed model.

egg_model()
Fit a cubic splines mixed model.
egg_aucs()
Derived areas under the curve from a cubic splines mixed-effects model by egg_model().
egg_slopes()
Derived slopes from a cubic splines mixed-effects model by egg_model().
egg_correlations()
Compute the derived parameters correlations from a cubic splines mixed-effects model by egg_model().
egg_outliers()
Compute outliers detection in AUCs/Slopes derived parameters from a cubic splines mixed-effects model by egg_model().
plot_egg_aucs()
Plot derived area under the curves from a model fitted by egg_model().
plot_egg_slopes()
Plot derived slopes from a model fitted by egg_model().

Datasets

bmigrowth
BMI Measurements For 100 Individuals From 0 To 17 Years.

General Functions

General functions to work with linear splines, cubic splines, and cubic slopes mixed model.

time_model()
Fit one of three mixed model.
predict_bmi()
Predict BMI for a range of ages from a model fit.
compute_apar()
Compute adiposity peak (AP) and adiposity rebound (AR).
plot_residuals()
Plot several residuals plots for diagnostics.
compute_aucs()
Compute area under the curves for several intervals using a model fitted by time_model().
plot_aucs()
Plot derived area under the curves from a model fitted by time_model().
compute_slopes()
Predict average slopes for several intervals using a model fitted by time_model().
plot_slopes()
Plot derived slopes from a model fitted by time_model().
compute_correlations()
Compute the derived parameters correlations from a cubic splines mixed-effects model by time_model().
compute_outliers()
Compute outliers detection in derived parameters from a cubic splines mixed-effects model by time_model().
gsp()
General regression splines with variable degrees and ness, smoothing splines.