# Load the example data
data(grwth_data)
# Fit the model
lmm <- lmmModel(
data = grwth_data,
sample_id = "subject",
time = "Time",
treatment = "Treatment",
tumor_vol = "TumorVolume",
trt_control = "Control",
drug_a = "DrugA",
drug_b = "DrugB",
combination = "Combination"
)
# Run random effects diagnostics
ranef_diag <- ranefDiagnostics(lmm)
#Access to individual plots
ranef_diag$Plots[1]
ranef_diag$Plots[2]
# Access to normality tests
ranef_diag$Normality
# Access to homoscedasticity tests of residuals by subject
ranef_diag$Levene.test
ranef_diag$Fligner.test
Run the code above in your browser using DataLab