Ratio of two contrasts, i.e. sum(contrast1*beta)/sum(contrast2*beta).

effect_contrast_ratio(contrast1, contrast2)

Arguments

contrast1

First contrast weights, a vector with the same length as the number of columns in the design matrix.

contrast2

Second contrast weights, a vector with the same length as the number of columns in the design matrix. sum(contrast2*beta) should always produce a positive value.

Value

An object defining how to calculate an effect size.