Calculate effect size for contrasts using estimated marginal means
Source:R/mmrm_eff_size.R
mmrm_eff_size.Rd
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.
Arguments
- mmrm_model
the mmrm model(s) of type
mmrm
,mmrmList
, ormmrmCV
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.