plot_ranefDiagnostics {SynergyLMM}R Documentation

Plots for random effects diagnostics

Description

Visualization of random effects diagnostics for a fitted linear mixed model of tumor growth data.

Usage

plot_ranefDiagnostics(model)

Arguments

model

An object of class "lme" representing the linear mixed-effects model fitted by lmmModel().

Value

A list with different plots for evaluating the normality and homoscedasticity of the random effects, including:

Examples

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",
  show_plot = FALSE
  )
# Generate plots 
plot_ranefDiagnostics(lmm)
# Access to specific plots
plot_ranefDiagnostics(lmm)[[1]]
plot_ranefDiagnostics(lmm)[[2]]

[Package SynergyLMM version 1.0.1 Index]