# 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"
)
# Residuals diagnostics
resid_diag <- residDiagnostics(model = lmm, pvalue = 0.05)
# Access outliers data frame
resid_diag$Outliers
# Access individual plots
resid_diag$Plots[1]
resid_diag$Plots[2]
# Access results of normality tests
resid_diag$Normality
# Access to homoscedasticity test results
resid_diag$Levene.test
resid_diag$Fligner.test
Run the code above in your browser using DataLab