0
$\begingroup$

We have data on a physiological variable of interest (Metabolic Cost of Walking) from 2 groups of subjects (10 young adults and 10 old adults). We measured each one of them twice, once in the morning and once in the afternoon of the same day. We did this to check for variations in metabolic data over the course of the day, both within and between the 2 groups.

Now we want to combine the data from morning and afternoon per group and then test the differences in the mean values on a group level between the young and the old group through a statistical test. We intend to perform a between-subjects, independent test.

What is the best way to combine the data (either at baseline or statistically) from morning and afternoon per group and then perform such a test ?

$\endgroup$

2 Answers 2

1
$\begingroup$

It is impossible to say how to combine AM and PM scores--or what to do after that--without knowing your motivation for the study and having a more-focused reason for doing both AM and PM tests. 'Checking for variations' is about as vague as it gets. Why are you really going to the extra effort to do both tests? How do you suppose they may differ?

If the overall purpose is to establish the semi-obvious fact that younger people have more 'energy' than older ones, then 10 subjects in each age group is probably too few to give results of interest, no matter what P-values you get. If you have a particular sub-population of interest (e.g., people in a city with a particular kind of water pollution), then results may be less predictable and more interesting, even with small samples.

I can see arguments for using any one of four methods of 'combining' AM and PM scores: (a) average, (b) difference, (c) worst, or (d) best score.

If you are familiar with 'metabolic cost' scores, then you might know how consistent you expect AM and PM scores to be. You might also have an idea whether such scores tend to be roughly normally distributed across a large population.

If you are at the exploratory phase of using these scores, you might try four separate 2-sample t tests after combining in each of the four ways (a)-(d). With sample sizes as small as 10 in each group. I hope data are nearly normal so that t tests are appropriate for comparing Young vs. Older, because the power of nonparametric tests, such as 2-sample Wilcoxon test, is somewhat lower, especially using such small groups.

You should guard against false discovery doing all four tests, perhaps looking for P-values below 1% or 2% to reject.

If you are familiar with these scores and feel it is OK to assume near normality, then you might consider an appropriate partially hierarchical ANOVA design, which would include all effects. Then if warranted, you could do ad hoc tests. Some of these ad hoc tests might show which of (a)-(d) is getting at the truth. Initial rejection of the overall ANOVA model as a prerequisite for doing ad hoc tests offers some protection against false discovery.

Notes: (1) If I understand your experiment correctly, a possible ANOVA model for a design that includes all effects, and does not combine AM and PM scores for individuals, is as follows:

$$Y_{ijk} = \mu + \alpha_i + \tau_j + \{\alpha\tau\}_{ij} + S(\alpha)_{k(i)} + e_{ijk},$$ where $i = 1,2$ age groups, $j=1,2$ times of the day, $k(i) = 1, 2, \dots, 10$ randomly chosen subjects within each age group, $S(\alpha)_{i(i)} \stackrel{iid}{\sim} \mathsf{Norm}(0, \sigma_S),$ and $ e_{ijk} \stackrel{iid}{\sim}\mathsf{Norm}(0, \sigma).$

You could study age, diurnal effect, and their interaction with lines $\alpha, \tau, \{\alpha\tau\}$ of the ANOVA table. These are all fixed effects. 'Subject' is a random effect. A three-way interaction is not supported because of the nesting. Parentheses $(\;)$ indicate nesting and are read as 'within'.

(2) Here is one reason parts of my discussion focus on having only ten subjects in each group.

Suppose, for normal data, that you are trying to detect a difference of one standard deviation with 10 subjects in each of two groups. For example, this might be the difference between $\mathsf{Norm}(\mu=100,\sigma=15)$ and $\mathsf{Norm}(\mu=115,\sigma=15).$ Then a computation using a noncentral t distribution shows the power is only about 56%.

With the same kind of data, using 2-sample Wilcoxon test, a simulation (with R) shows that the power is only about $0.511 \pm 0.003.$ Even if the effect is present, you have only about a 50:50 chance of detecting it.

set.seed(2020)
pv = replicate( 10^5, 
      wilcox.test( rnorm(10,100,15), rnorm(10,115,15) )$p.val )
mean(pv < .05)
[1] 0.51138        # aprx power for 5% level test
2*sd(pv < .05)/sqrt(10^5)
[1] 0.0031430  

mean(pv < .02)
[1] 0.36578        # aprx power for 2% level test

Addendum in response to question in comment:

  • Suppose the main difference between Young and Older people is that Older ones have higher metabolic cost later in the day. But Younger people stay steady throughout the day. Would that be of interest? If so, then look at PM/PM difference. (Either order, AM - PM or PM - AM, but be consistent.)

  • What if most efficient score is the 'real' one and some people are occasionally less efficient? (Brief headache, upset over bad news, today's pizza lunch not digesting properly.) Then use most efficient score.

  • What if least efficient sore is more reliable? (Anyone can happen to have an occasional atypical efficient score, but that's an anomaly.) Then use least eff. score.

I don't suppose you're limited to using just one of the ways of summarizing data.

I really have no idea which to use because this is not my area of study. Presumably someone familiar with these scores would have a clue what they really mean. And presumably someone not yet familiar with them would want to find out before using them in a study.

I hope you also pay attention to the issue of potentially low power to detect real effects due to the small sample sizes you mentioned.

$\endgroup$
8
  • $\begingroup$ The reason for testing during AM and PM is that this variable depends on the time of the day. In other words there are diurnal effects on the variable. So we are interested to see if there is a diurnal effect for either of the groups or for both the groups. In addition, we are also interested to see whether there are any age-group effects and an interaction effect between the time of the day (AM and PM) and the age-groups (Young and Old) on the variable. We have also already checked for normality of the data and the dataset is fairly normal, so we can choose to do parametric tests. $\endgroup$ Commented Apr 24, 2020 at 19:50
  • $\begingroup$ I understand your suggestion of doing an average. However, how do you suggest to do the other options ? For difference do you mean to subtract AM data from PM data or vice-versa per subject ? Also what do you mean by worst or best score ? We have 10 AM data and 10 PM data from 10 young adults and then again 10 AM data and 10 PM data from 10 old adults. $\endgroup$ Commented Apr 24, 2020 at 19:58
  • $\begingroup$ See response in Addendum. Too much to fit nicely into a comment. And I almost addressed this in Answ, but thought Answ. was already getting too long.// Wishing you well on your project. Just trying to raise issues that might get in the way of success. $\endgroup$
    – BruceET
    Commented Apr 24, 2020 at 21:45
  • $\begingroup$ Ok, now I understand your four ways of possible combinations. I also noted your comment about the potential low power case. Howeer, in our field of biomechanics/human energetics, predominantly most of the studies have lower sample sizes (10-15 per group) due to nature of subjects that we can include in our studies through strict inclusion criteria. As a result of this, do you suggest that to guard against false positives, maybe I should use an alpha of 0.01 or 0.02, instead of the conventional 0.05? Also, there would be more chances of having False negatives for each of the t-tests ? $\endgroup$ Commented Apr 24, 2020 at 22:07
  • 1
    $\begingroup$ If you don't have good power testing at the 5% level, you will have worst power testing at the 2% level. If you make the rejection region smaller so that you reject less often when $H_0$ is true (lower signif. level), then inevitably you'll reject less often then $H_0$ is false (lower power). There's no free lunch. $\endgroup$
    – BruceET
    Commented Apr 24, 2020 at 22:17
1
$\begingroup$

So we are interested to see if there is a diurnal effect for either of the groups or for both the groups. In addition, we are also interested to see whether there are any age-group effects and an interaction effect between the time of the day (AM and PM) and the age-groups (Young and Old)

So why combine the AM and PM data at all? First, a single model will give you all those results (assuming that you have adequate power, as @BruceET rightly is concerned about*). Second, if there is an interaction between time of day and age group then there really is no good way to combine AM with PM data.

A simple model could be:

MCW ~ ageGroup*timeOfDay

where MCW is the measured metabolic cost of walking, and timeOfDay is AM or PM. Say that "Young" and "AM" are the reference values for the categorical predictors. Then you get 4 coefficients reported:

  1. An intercept, representing the estimated MCW for Young in the AM.

  2. A coefficient for ageGroup, representing the difference between Old and Young in the AM;

  3. A coefficient for timeOfDay, representing the difference between PM and AM for the Young group;

  4. An interaction-term coefficient, representing the difference in the timeOfDay coefficient between the Old and Young groups (and also the difference in ageGroup coefficient between PM and AM).

Then there are 2 general possibilities.

First, if the interaction term is too small to be of interest, then you can just go to an additive model:

MCW ~ ageGroup + timeOfDay

and the ageGroup coefficient gives you the result you want for Old-Young difference.

Alternatively, if the interaction term is large enough to be of interest then there is no good way to combine the AM and PM values. You will have shown that the PM-AM difference depends on the ageGroup. You will have one ageGroup difference for AM and a different one for PM. So any attempt to combine AM and PM values across age groups will be misleading at best. The estimated MCM values for the 4 combinations of ageGroup and timeOfDay will better illustrate your results.


*Using a mixed model might help with power. For example, using the R lmer() syntax you could model:

MCW ~ ageGroup*timeOfDay + (1|subject),

which allows for differences in intercept terms among your 20 participants in a way that might help improve the precision of estimates for the regression coefficients.

$\endgroup$
6
  • $\begingroup$ Why so you say that mixed model is not directly related to the question? Is it because using mixed models also we cannot combine the AM and PM values per group and test for the group effects? If indeed the interaction effect is statistically significant and of interest, then there is no rationale to combine the AM and PM values. Is that what you say ? $\endgroup$ Commented Apr 24, 2020 at 23:06
  • $\begingroup$ @SauvikDasGupta I expanded on use of a mixed model in the answer. But whether you use a fixed model or a mixed model you can't reliably combine the AM and PM values per group if there is an important interaction term. That's because with an interaction term the ageGroup difference depends on timeOfDay. You're better off showing the ageGroup differences for AM and PM separately. $\endgroup$
    – EdM
    Commented Apr 25, 2020 at 15:41
  • $\begingroup$ Ok, I will try it out in R. Well from literature, there is not a strong reason to believe for an interaction. I setup the problem in a 2-way mixed ANOVA in JASP and saw that for one of my variables of MCW (I have 2 variables, Gross and Net MCW) there is a marginally significant interaction effect (p=0.04, with a small range effect size of 0.2 partial eta-squared) between ageGroup and timeOfDay (for Gross) and not a significant interaction effect for Net. Does this mean I can try to combine the AM and PM values for my Net MCW and not for the Gross MCW. $\endgroup$ Commented Apr 26, 2020 at 19:53
  • $\begingroup$ Also do you know is there any fundamental difference between a 2-way mixed ANOVA (that I have done now) and the method using lmer in R that you have suggested for this problem? $\endgroup$ Commented Apr 26, 2020 at 19:54
  • $\begingroup$ @SauvikDasGupta I don't know how JASP handles 2-way mixed ANOVA (with interaction). JASP depends on the R lme4 package that includes lmer() so I suspect that results will be the same either way for the interaction model. I don't know how to set up a no-interaction additive model in JASP. No problem combining AM and PM for Net MCW. For Gross MCW, if you first show the results with interaction and then explain that the interaction is too small to be of interest even though it's statistically "significant," you could show combined AM+PM for that too. $\endgroup$
    – EdM
    Commented Apr 26, 2020 at 21:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.