Skip to contents

Calculate timepoint by timepoint effect size for MMRM models as the least-squares means / sqrt(residual variance) at each timepoint. Calculated by running emmeans::eff_size for each timepoint contrast, where the timepoint by timepoint residuals come from the diagonals of covMat. Uncertainty is estimated by emmeans::eff_size.

Usage

mmrm_eff_size(mmrm_model, mmrm_emm, residual_error = TRUE, ...)

Arguments

mmrm_model

the mmrm model(s) of type mmrm, mmrmList, or mmrmCV used to calculate effect size

mmrm_emm

estimated marginal means from and MMRM. output of mmrm_emmeans

...

additional arguments passed to emmeans::eff_size

edf

equivalent degrees of freedom for the residual variance. See emmeans::eff_size for details, by default NULL

Value

emmeans::emmGrid object Note: effect sizes and confidence intervals are calculated on each timepoint contrast individually. The contrast covariance matrix only includes the diagonals.