LRM.Rd
Calculates the log ratio of medians effect size index
LRM(
A_data,
B_data,
condition,
outcome,
baseline_phase = NULL,
intervention_phase = NULL,
improvement = "increase",
delta_method = FALSE,
confidence = 0.95
)
vector of numeric data for A phase. Missing values are dropped.
vector of numeric data for B phase. Missing values are dropped.
vector identifying the treatment condition for each observation in the series.
vector of outcome data for the entire series.
character string specifying which value of
condition
corresponds to the baseline phase. Defaults to first
observed value of condition
.
character string specifying which value of
condition
corresponds to the intervention phase. Defaults to second
unique value of condition
.
character string indicating direction of improvement. Default is "increase".
logical value indicating whether to use delta method to
approximate variance of log ratio of medians. Default is FALSE
,
which estimates the variance based on the fact that the logarithm of a
median is the same as the median of the log-transformed outcomes. If
TRUE
, the variance of log ratio of medians is approximated using
delta method.
confidence level for the reported interval estimate. Set to
NULL
to omit confidence interval calculations.
A data frame containing the estimate, standard error, and confidence interval.
The ratio of medians effect size parameter is defined as the ratio of the medians of the outcomes in different phases. The log ratio of the medians is the natural logarithm of the ratio of medians. This effect size is appropriate for outcomes that are skewed, symmetric but highly leptokurtic, or right-censored (Bonett & Price Jr, 2020).
Bonett, D. G. & Price Jr, R. M. (2020). Confidence Intervals for Ratios of Means and Medians. Journal of Educational and Behavioral Statistics, 45(6), 750–770. doi:doi:10.3102/1076998620934125
Bonett, D. G., & Price, R. M. (2020). Interval estimation for linear functions of medians in within-subjects and mixed designs. British Journal of Mathematical and Statistical Psychology, 73(2), 333-346. doi:doi:10.1111/bmsp.12171