Skip to main content

Ex. 3 – Ordered means with effect sizes

Test whether ordered group differences are at least a small effect (Cohen’s d).

The research question

In example 1 we found support for the hypothesis that more walking exercise is associated with a lower age at which children start to walk:

\[ H_1: \mu_{Active} \leq \mu_{Passive} \leq \mu_{Control} \leq \mu_{No}. \]

A significant result does not mean that the differences are relevant. A natural next question is: is each difference at least a small effect? For that, we use Cohen’s d: the difference between two means divided by the pooled within-group standard deviation \(\sigma\). Cohen considered 0.2, 0.5 and 0.8 as small, medium and large effects. The hypothesis becomes:

\[ H_1^{d}:\quad \frac{\mu_{Passive} - \mu_{Active}}{\sigma} \geq 0.2,\quad \frac{\mu_{Control} - \mu_{Passive}}{\sigma} \geq 0.2,\quad \frac{\mu_{No} - \mu_{Control}}{\sigma} \geq 0.2. \]

Step 1 – fit the unrestricted model

library(restriktor)
fit.ANOVA <- lm(Age ~ -1 + Group, data = ZelazoKolb1972)

Step 2 – write the constraint syntax with sd

In the constraint syntax, sd stands for the residual standard deviation of the model. In an ANOVA, that is exactly the pooled within-group standard deviation of Cohen’s d (here 1.516):

H1d <- ' GroupPassive - GroupActive  > 0.2*sd
         GroupControl - GroupPassive > 0.2*sd
         GroupNo      - GroupControl > 0.2*sd '

You could also write (GroupPassive - GroupActive)/sd > 0.2; that is the same restriction.

Step 3 – test the hypothesis

out <- iht(fit.ANOVA, constraints = H1d)
out

Restriktor: restricted hypothesis tests: 


Multiple R-squared remains 0.986 

Constraint matrix:
   GroupActive GroupControl GroupNo GroupPassive    op              rhs active
1:          -1            0       0            1    >= 0.30327886536229     no
2:           0            1       0           -1    >= 0.30327886536229     no
3:           0           -1       1            0    >= 0.30327886536229     no


Overview of all available hypothesis tests:

Global test: H0: all parameters are restricted to be equal (==)
         vs. HA: at least one inequality restriction is strictly true (>)
       Test statistic: 2.3832,   p-value: 0.1689

Type A test: H0: all restrictions are equalities (==) 
         vs. HA: at least one inequality restriction is strictly true (>)
       Test statistic: 2.3832,   p-value: 0.1689

Type B test: H0: all restrictions hold in the population
         vs. HA: at least one restriction is violated
       Test statistic: 0.0000,   p-value: 1

Joint Type A and Type B test (Wolak, 1989, Theorem 1):
         joint tail probability under H0: Rb = r (least favorable null)
       Pr[Type B >= 0.0000, Type A >= 2.3832]:   p-value: 0.1689

Type C test: H0: at least one restriction is false or active (==) 
         vs. HA: all restrictions are strictly true (>)
       Test statistic: 0.0343,   p-value: 0.4865

Note: Type C test is based on a t-distribution (one-sided), 
      all other tests are based on a mixture of F-distributions.

restriktor reports which value it used for sd. In the constraint matrix you can see that each difference must now be at least 0.2 × 1.516 = 0.303 months (the rhs column).

Step 4 – interpret the results

  • Type B is not rejected (\(\bar{F}\) = 0.00, p = 1.000): the data are in line with \(H_1^{d}\).
  • Type A is not rejected (\(\bar{F}\) = 2.38, p = .169). Here, the null hypothesis of Type A is that all differences are exactly 0.2 standard deviations.

Conclusion: the means are ordered as expected (example 1), but with these data we cannot conclude that each difference between adjacent groups is at least a small effect. With six children per group, the sample is simply too small to show that.

TipWhy include effect sizes?

With a large sample, even tiny, practically irrelevant differences are significant. Including a minimally relevant effect size in the hypothesis protects you against such conclusions.

The same idea with the GORIC

Effect sizes can also be used in the hypotheses of goric(). Then you evaluate, for example, the support for “at least small differences” against its complement:

goric(fit.ANOVA, hypotheses = list(H1d = H1d))
restriktor (0.7): generalized order-restricted information criterion: 

Results:

Values:
        model          loglik          penalty          goric
1         H1d         -40.014            3.098         86.224
2  complement         -40.015            4.869         89.767

Weights:
        model  loglik.weights  penalty.weights  goric.weights
1         H1d           0.500            0.855          0.855
2  complement           0.500            0.145          0.145

Conclusion:
The order-restricted hypothesis 'H1d' has 5.88 times more support than its
complement.

---

Additional information:

- Note: The log-likelihood (loglik) value of the best hypothesis Hypothesis
  'H1d' is close to the log-likelihood (loglik) value of Hypothesis
  'complement'. You may want to use the benchmark() function to investigate
  whether this is the case. If so, then this indicates that there is
  support for their boundary. More details can be found in the vignette
  'Guidelines_GORIC_output' (to open it, run
  vignette("Guidelines_GORIC_output", package = "restriktor")) and in the
  decision tree on https://github.com/rebeccakuiper/Tutorials (the file
  'Decision tree - Interpretation.pdf').

- The benchmark() function can be used to label the height of the output,
  for example, the height of the ratio(s) of weights (e.g., to say whether
  that value denotes medium, high, or very large evidence). More details
  can be found in the vignette 'Guidelines_GORIC-benchmarks'; to open it,
  run vignette("Guidelines_GORIC-benchmarks", package = "restriktor").

- 1 message was given when running goric(). To see it, first save the
  output of goric() as an object, and then use:
  cat(<name goric object>$run_messages, sep = "\n\n")