- Open Access
A comparison of standard and compositional data analysis in studies addressing group differences in sedentary behavior and physical activity
International Journal of Behavioral Nutrition and Physical Activity volume 15, Article number: 53 (2018)
Data on time spent in physical activity, sedentary behavior and sleep during a day is compositional in nature, i.e. they add up to a constant value. Compositional data have fundamentally different properties from unconstrained data in real space, and require other analytical procedures, referred to as compositional data analysis (CoDA). Most physical activity and sedentary behavior studies, however, still apply analytical procedures adapted to data in real space, which can lead to misleading results. The present study describes a comparison of time spent sedentary and in physical activity between age groups and sexes, and investigates the extent to which results obtained by CoDA differ from those obtained using standard analytical procedures.
Time spent sedentary, standing, and in physical activity (walking/running/stair climbing/cycling) during work and leisure was determined for 1–4 days among 677 blue-collar workers using accelerometry. Differences between sexes and age groups were tested using MANOVA, using both a standard and a CoDA approach based on isometric log-ratio transformed data.
When determining differences between sexes for different activities time at work, the effect size using standard analysis (η2 = 0.045, p < 0.001) was 15% smaller than that obtained with CoDA (η2 = 0.052, p < 0.001), although both approaches suggested a statistically significant difference. When determining corresponding differences between age groups, CoDA resulted in a 60% larger, and significant, effect size (η2 = 0.012, p = 0.02) than that obtained with the standard approach (η2 = 0.008, p = 0.07). During leisure, results based on standard (age; η2 = 0.007, p = 0.09; sex; η2 = 0.052, p < 0.001) and CoDA (age; η2 = 0.007, p = 0.09; sex; η2 = 0.051, p < 0.001) analyses were similar.
Results and, hence, inferences concerning age and sex-based differences in time spent sedentary and in physical activity at work differed between CoDA and standard analysis. We encourage researchers to use CoDA in similar studies, to adequately account for the compositional nature of data on physical activity and sedentary behavior.
The health benefits of being physically active are numerous, while sedentary behavior has emerged as a potential health hazard [1, 2]. Both insufficient physical activity and excessive sedentary behavior appear to be associated with an increased risk of coronary heart disease, type 2 diabetes mellitus, and cancer [3,4,5].
Among various factors, age and sex are two potentially important determinants of sedentary behavior and physical activity [6,7,8,9]. For instance, men tend to be more physically active than women , and physical activity tends to decrease with age .
A majority of studies, including those investigating differences between sexes and age groups in physical activity and sedentary behavior, have used a standard analysis approach in which the time spent in each behavior, e.g. time spent sedentary within a day, is treated without consideration to the inherent dependency of time spent in all behaviors occuring within that day. If the time spent in one behavior is changed, it will inevitably influence the time in other behaviors within that day. Data with this inherent dependency in the sense that they add up to a constant sum are constrained or compositional [10, 11].
A standard multivariate statistical approach for analyzing time spent in different behaviors within a day fails to account for this constrained property of data [12,13,14]. A set of procedures has been developed to handle compositional data, i.e. Compositional Data Analysis (CoDA ) which has only recently received attention in studies of sedentary behavior and physical activity [14,15,16,17,18,19,20]. One of these studies compared results obtained using standard and CoDA approach, in an investigation of associations between time spent in different behaviors within a day and various health indicators . The study found that associations were different when standard analyses were used, compared to CoDA. No previous study has explicitly investigated the extent to which the results of comparisons between sexes and age groups in time spent in various behaviors during a day depend on whether the analysis was performed using CoDA or a standard approach.
Thus, the present study compared sedentary behavior and physical activity during working days between sexes and age groups, with specific emphasis on differences in results obtained with standard and CoDA approaches.
The study was based on cross-sectional baseline data from the Danish PHysical ACTivity cohort with Objective measurements (DPHACTO; c.f., ). Data were collected between spring 2012 and spring 2013 at 15 Danish workplaces in three different occupational sectors, i.e. cleaning, transport, and manufacturing. In total, 2107 eligible workers, recruited in collaboration with a large labor union, were invited to participate in the study. Workers were excluded if they had a white-collar job, were pregnant, had a fever, or had an allergy to adhesives.
Participants filled-in a web-based questionnaire and were equipped with an Actigraph accelerometer (Actigraph GT3X+, Florida, USA) placed on the right thigh  for four consecutive days (4 × 24 hours), including at least two working days . On the measurement days, the workers were asked to complete a paper-based diary, noting their working hours, time in bed (i.e. the times going to bed and getting out of bed), and non-wear time. They also noted the time of a reference measurement (ie., standing in an upright position for 15 s) performed to allow a coordinate transformation between the axis of the accelerometer and the orientation of the thigh . Instructions to the workers are detailed in previous publications [23, 25, 26].
Accelerometer-based measurements of movement behaviors within a day
The amounts of time spent in various behaviors (sedentary, standing, and physical activity (PA)) were identified from the accelerometer recordings using the MATLAB program Acti4 [22, 24, 26]. The Acti4 program has a high sensitivity (>94%) and specificity (>99%) in identifying body postures (sitting and lying) and different physical activities (i.e., standing, walking, running, cycling, and stair climbing) during semi-standardized conditions . Periods spent walking, stair-climbing, running, and cycling were merged to total PA time category.
All non-working days, non-wear periods and bedtime periods were excluded according to previously reported criteria [25, 26]. Workers were included in further analyses only if they had at least one measured day with a valid recording of a work and leisure period. A definition of valid work and leisure period is explained elsewhere [25, 26]. Work was defined as the self-reported hours spent in the primary occupation, and leisure time was defined as the remaining time, except for time in bed. The amounts of time spent in sedentary behavior, standing, and in PA were expressed relative to the total wear time for work and leisure separately.
Age and sex
Age and sex were retreived from the unique Danish civil registration number. Workers were categorized into two age groups: younger (≤45 years) and older (>45 years).
Data processing and statistical analysis
Differences between sexes and age groups in the amounts of time spent in various movement behaviors were analyzed separately for work and leisure. Each comparison was performed using both standard and CoDA analytical approaches.
In CoDA, the compositional data, which lies in a simplex dataspace, can first be mapped to the real space by transforming the absolute values in the composition, i.e. the compositional vector, into sets of log-ratios . The log-ratio transformation leads to data that are not constrained and can take any real value between −∞ and +∞. Several algorithms for log-transformation of compositional data have been proposed [12, 27, 28]. After some types of log-ratio transformations, such as the isometric log-ratio (ilr) transformation, data can be processed and analyzed using any standard statistical technique that is valid under the conditions and assumptions applying to data in real space.
To investigate differences between sexes and age groups, we performed CoDA in the following steps adapted from previous research :
CoDA-based descriptives. Compositional means were calculated by normalizing the geometric means of all movement behaviors so as to add up to 100%. Bar plots of geometric means (Appendix 2) were used to illustrate proportions of the time spent in each behavior, stratified by sex and age group  (cf. Appendix 1 for how to make these plots). Variability in the data, in terms of variability of each behavior relative to the variability of other behaviors, and the total variance of the whole composition, is described in Appendix 3 through a variation matrix [11, 16] within each domain.
Log-ratio data transformation. We selected the ilr data transformation rather than other log-transforms such as additive or centered  because the ilr transformation preserves all metric properties of data and results in coordinates with a non-singular covariance matrix . Specifically, with an ilr transformation, data in a simplex with three parts (i.e.,, sedentary, standing and PA) are expressed in real space by two log-ratio coordinates :
Thus, ilr 1 expresses the ratio of sedentary time to time in all other (non-sedentary) behaviors, while ilr 2 considers the ratio of standing time to time in PA, i.e. the relative occurrence of the two movement behaviors “within” the non-sedentary class.
Then, multivariate analysis of variance (MANOVA) was applied to the ilr-transformed data to determine the separate main effects of sex and age (as independent variables) on both ilr log ratios together (dependent variables), using the partial eta squared (η2) as a measure of effect size, and the corresponding p-value as a metric for evaluating statistical significance. To understand and complete the results of the multivariate tests, two separate t-tests, one for each ilr log-ratio, were performed to evaluate non-adjusted contributions of each ilr to any possible difference between sexes and age groups, using p-values as metrics for significance. To further support the interpretation of which behavior in a particular ilr explains a possible significant group difference, we developed bootstrap percentile confidence intervals for log-ratio differences between sexes and age groups . The method used to obtain and interpret these intervals is described in Appendix 4.
Arithmetic means and standard deviations between workers were calculated for each movement behavior separately (sedentary, standing, PA), stratified by sex and age group. The main effect of sex and age on the proportion of time spent in each movement behavior was determined using two separate MANOVAs. Physical activity time was not included as a dependent variable since the three behaviors add up to 100%. Thus, the proportion of time spent in any behavior can be expressed as a linear combination of the proportions of time spent in the remaining behaviors, resulting in a singular covariance matrix. While we decided to remove PA from the multivariate model, removing sedentary or standing instead would not have changed the results. Additionally, three separate t-tests were performed to determine whether each individual behavior differed significantly between sexes and age categories.
Model assumptions in MANOVA and t-tests were checked using homogeneity of variance tests and standard graphical procedures. Results obtained with standard and CoDA approaches were considered similar; 1) if the ratio between MANOVA-based η2-statistics obtained using the two approaches was close to 1; and 2) if both standard and CoDA results were significant at P < 0.05; and 3) if the results of t-tests with the standard approach were significant at p < 0.05, and results of t-tests in the CoDA approach were also significant at p < 0.05, and the corresponding bootstrap percentile confidence intervals did not include 0. All statistical analyses were performed in the Statistical Package for the Social Sciences (SPSS, version 24), and R (version 3.3.2) using the ‘boot’ [31, 32] and ‘compositions’ packages .
In total, the 677 workers included in the analyses were measured for 29,360 h, with, on average 16.4 (SD 1.4) hours per worker. Details on the recruitment process are shown in Appendix 5. On average, workers were measured for 7.6 (SD1.3) hours at work [men 7.7 (SD 1.3), women 7.5 (SD 1.3), younger 7.6 (SD 1.4), older 7.6 (SD 1.2)] and for 8.8 (SD 1.6) hours during leisure [men 8.6 (SD 1.6), women 9.0 (SD 1.6), younger 8.6 (SD 1.6), older 9.0 (SD 1.6)]. Descriptive statistics of the time spent in each movement behavior (sedentary, standing and PA) obtained with the standard and CoDA approaches are shown in Table 1.
The variation matrix (Appendix 3) indicated that behaviors in leisure were, in general, more closely correlated than behaviors at work. The largest variability between workers was observed for ratios at work of sedentary time to stand and to PA.
When comparing geometric means for each sex with the mean of the whole group under the CoDA approach (Appendix 2), differences were observed for all movement behaviors at work and in leisure, i.e., women were less sedentary and more active during both domains than men. When comparing age groups, differences were observed only for sedentary time at work and for PA at leisure, i.e., younger workers were more sedentary at work but more active during leisure than older workers.
Results of Box-M tests showed that the assumption of homogeneity of variances and covariances was met for variables during leisure, but not during work, for both standard and CoDA variables. However, because our sample size was sufficiently large, and the proportion of workers in each strata was almost equal (men 55%, younger 46%), the impact of violating the assumption of equal covariances was considered minimal . Visual inspection of Q-Q plots and histograms of standardized residuals indicated that variables were, in general, normally distributed. Two outliers were identified in boxplots. However, eliminating these outliers from the dataset did not change the results reported below.
When sexes were compared with respect to time spent in different movement behaviors (MANOVA), the η2-statistics obtained using the standard approach was 15% smaller than that obtained using CoDA. Both η2-statistics were, however, statistically significant at the p < 0.05 level. When comparing age groups, η2-statistics based on the standard approach was 60% smaller, and not statistically significant, than that obtained with CoDA, which was significant (Table 2).
During leisure, η2-statistics were similar with both approaches, indicating a significant difference between sexes, but a non-significant difference between age groups for time spent in all movement behaviors.
The t-tests showed that sexes differed significantly during work in both ilr coordinates (ilr 1 : sedentary vs. standing and PA together, ilr 2 : standing vs. PA). Figure 1 illustrates that men spent more time sedentary and less time standing at work compared to women, while the difference in PA was not significant. Using the standard approach, all three movement behaviors at work, even PA, differed significantly between sexes (Table 3).
Only ilr 1 differed significantly by age (Table 3). According to Fig. 1, younger workers spent significantly more time sedentary at work than older workers. However, the time proportion of standing relative to that of PA (reflected by ilr 2 ) did not differ significantly by age (Fig. 1). In the standard approach, none of the behaviors differed significantly between age groups (Table 3).
During leisure, sexes differed significantly only in the ilr 1 coordinate (Table 3), men spending less time standing and in PA, and, thus, more time sedentary than women (Fig. 1). A similar result was obtained using the standard approach. Behaviors during leisure did not differ significantly between age groups, according to neither standard analysis nor CoDA (Table 3).
While the need to use CoDA when analyzing movement behaviors during a day has been highlighted in a number of papers [5, 14,15,16, 18, 19, 24, 35, 36], CoDA is still rarely used in occupational and public health research. The present paper intends to promote the use of CoDA by explaining the approach in the context of comparisons between groups, and by examining whether time spent sedentary and in physical activity among men and women, and in different age groups stand out differently when using a compositional data analysis (CoDA) compared to using a standard approach. Our study showed that inferential statistics and effect sizes for differences between sexes and age groups do, indeed, depend on the analytical approach. Thus, using CoDA can change the message of a study investigating group differences in time spent on movement behaviors. Our study shows that age and sex are important determinants of how time is used at work and in leisure. The research reported in this paper fits well within the scope of the framework for Viable Integrative Research in Time-Use Epidemiology (VIRTUE) . The VIRTUE framework acknowledges the compositional nature of time-use data and suggests methodological research into addressing differences in effect sizes obtained by standard and CoDA analysis, as well as research examining likely determinants of the composition of physical activity and sedentary behavior.
In the multivariate comparison between age groups, the effect size (partial eta squared- η2) measuring the overall difference in movement behaviors at work was 60% larger using CoDA than when derived using standard analysis (Table 2). Similarly, when comparing sexes, the multivariate analysis resulted in a 16% larger effect size obtained with CoDA than via the standard appoach. With p < 0.05 as the limit for statistical significance, the difference between age groups for time spent in different behaviors was statistically significant according to CoDA, while it was not when using the standard approach. Thus, in a study comparing sexes or age groups with respect to time spent in different movement behaviors, conclusions on statistical significance may differ depending on the analysis approach. Notably, agreement (or not) between the two approaches in regard to whether a group difference shows to be statistically significant may depend on the significance criterion. Had we chosen a significance level of 0.01 or 0.10, the differences between CoDA and standard analyses in terms of statistical significance would have disappeared. In other studies, these specific limits for when results will (dis)agree may obviously be different.
To complete the information offered by the multivariate analysis of differences between groups, we compared groups with respect to each movement behavior using t-tests and bootstrap 95% percentile confidence intervals (Fig. 1). The largest disagreement between CoDA and standard analysis appeared when comparing age groups (Fig. 1, Table 2). The univariate analyses confirmed some disagreement between the two approaches in detecting significant differences between age groups in time spent in the three movement behaviors at work.
In leisure, neither standard analysis nor CoDA pointed to any significant differences between age groups or sexes (Table 2). Thus, the two approaches gave similar results in leisure, while at work they did not (Table 2). One reason to this difference between work and leisure could be that the variance in behavior between workers is considerably larger at work that in leisure (Appendix 3). Thus, workers are more likely to show behavior(s) at work occupying close to 0% or 100% of their time than to show equally extreme behaviors in leisure, and this may lead to a more pronounced difference between results under CoDA and standard analyses.
To the best of our knowledge, only one previous study has compared results obtained using CoDA and standard methods . However, in that study, CoDA and standard approaches were used in a regression analysis to investigate the effect of time spent in various behaviors within a day on obesity and cardiorespiratory markers. The study found a difference of about 10 min between arithmetic and compositional group means of moderate-to-vigorous physical activity (MVPA), which is similar to our results of a 12 min difference between CoDA and standard means for PA (Table 1, difference between 18.7 and 19.5% time in PA, corresponding to 12 min). Replacing behaviors associated with a low energy expenditure by just 10 min of MVPA per day can have a significant impact on health outcomes such as obesity [16, 24]. Thus, CoDA and standard analyses may lead to different conclusions, not only from a numeric or statistical viewpoint, but even in terms of the practical applications of study results. In the cited study, the CoDA approach led to attenuated associations, especially for MVPA with cardiorespiratory indicators, compared to the standard approach. In light of these results, and of the findings in the present study, future studies comparing the results of using standard and CoDA approaches in different study designs, and in study populations of various structures appear warranted.
Overall, based on CoDA, we found no difference between age groups in sedentary time and physical activity during leisure, while at work, young workers were more sedentary than older workers. We also found that men were generally less active than women, both during work and leisure, which contradicts previous findings [6, 8, 37, 38]. These differences can be explained by the metric reflecting physical activity used in our study. Previous studies have mainly measured “activity” as the occurrence of vigorous physical activity. In our study, however, “physical activity” included time spent standing, walking, running, stair climbing and cycling. Thus, differences between sexes in physical activity in our study may have occurred in, for instance, walking and not for vigorous physical activities such as running or biking. At work, differences in physical activity between sexes could be due to the job type. In our study population, most cleaners were women while most transport workers were men. Cleaning is associated with extensive standing and moving, while transport workers (preferentially lorry drivers) sit for long periods. Differences between age groups in time spent sedentary compared to other behaviors at work may also relate to job type; the older group comprising more cleaners than the younger group.
In standard analyses of compositional behavior data, any specific behavior is perfectly correlated to the sum of all others. Thus, one variable was removed from the MANOVA model. Most studies dealing with time spent in sedentary behavior and physical activity have not mentioned, let alone addressed, this collinearity issue. The reason may be that behaviors have been expressed in terms of hours/day, not percentages [24, 39], which will not, at a first glance, appear to lead to redundancy issues. A similar issue of the compositional nature of data not being clearly visible appears if single behaviors within a day are analyzed independently in separate univariate analyses. In such scenarios, high correlations between variables may still be present, but the model can be fitted because the compositional nature of data is, to some extent, concealed [40, 41]. Thus, while, standard analyses of compositional data may appear to deliver useful results, they are still basically misleading, since they do not account for the constrained structure of data.
An inherent drawback of the CoDA approach is that essential zeros, such as never spending time on PA in a day, are difficult to handle, since the log-transforms performed as part of the CoDA do not allow zeroes. In the present paper, we avoided essential zeros by merging short durations (which could, in some cases, be zero) of running, cycling, stair climbing and walking into a ‘physical activity’ category. Other ways of dealing with essential zeroes have been suggested, but fall beyond the scope of the present paper .
For more than three decades, CoDA has been proposed as the correct approach for analyzing data expressing parts of a whole  and CoDA has been implemented to a considerable extent in a number of research areas [43,44,45,46,47]. However, CoDA is still rarely practiced in research devoted to physical activity and sedentary behavior [16,17,18], or to other biomechanical exposures often expressed as compositions, such as working postures . Emphasizing that results will, in this case, be mathematically correct and correctly interpretable only if analyzed using CoDA, we encourage researchers in occupational and public health to adopt methods and experiences from other disciplines, and apply CoDA in future studies on sedentary behavior and physical activity. This includes studies in populations others than the selection of blue-collar occupations addressed in the present study, and studies devoted to understanding effects of other likely determinants of behavior than sex and age, for instance BMI and musculoskeletal disorders.
Strengths, limitations and methodological considerations
The major strength of the present study is the access to device-based measures of sedentary behavior and physical activity for more than 29,000 h of work and leisure. Also, data were processed using a validated software, Acti4, which can identify different types of physical activity and body postures with excellent sensitivity and specificity .
The main limitation of the study is the inclusion of only blue-collar workers. Since the extent to which results differ between CoDA and standard approaches likely depends on the distribution of data in the investigated population, we emphasize that similar studies should be conducted among other populations, for instance white-collar workers, to validate our findings. Additionally, statistical simulation studies with known differences between groups may also provide valuable insights into a possible bias in effect sizes when using a standard approach compared to CoDA. We also recommend studies to include sleep/bedtime data, since this may influence eventual findings regarding, for instance, differences between sexes and age groups.
Our results showed that comparisons of sedentary behavior and physical activity between sexes and age groups may lead to different results and, thus, different interpretations depending on whether they are obtained using CoDA or a standard analysis approach, i.e. depending on whether the compositional nature of data is acknowledged or not. We encourage researchers to use CoDA rather than standard analysis when handling compositional data on sedentary behavior and physical activity in occupational and public health studies.
Compositional data analysis
Multivariate analysis of variance
Moderate-to-vigorous physical activity
Katzmarzyk PT, Church TS, Craig CL, Bouchard C. Sitting time and mortality from all causes, cardiovascular disease, and cancer. Med Sci Sports Exerc. 2009;41:998–1005.
Young DR, Hivert MF, Alhassan S, Camhi SM, Ferguson JF, Katzmarzyk PT, Lewis CE, Owen N, Perry CK, Siddique J, et al. Sedentary behavior and cardiovascular morbidity and mortality: a science advisory from the American Heart Association. Circulation. 2016;134:e262–79.
Lee IM, Shiroma EJ, Lobelo F, Puska P, Blair SN, Katzmarzyk PT. Effect of physical inactivity on major non-communicable diseases worldwide: an analysis of burden of disease and life expectancy. Lancet. 2012;380:219–29.
Rezende LF, Rodrigues Lopes M, Rey-Lopez JP, Matsudo VK, Luiz Odo C. Sedentary behavior and health outcomes: an overview of systematic reviews. PLoS One. 2014;9(8):e105620.
Warburton DE, Nicol CW, Bredin SS. Health benefits of physical activity: the evidence. CMAJ. 2006;174:801–9.
Azevedo MR, Araujo CL, Reichert FF, Siqueira FV, da Silva MC, Hallal PC. Gender differences in leisure-time physical activity. Int J Public Health. 2007;52:8–15.
Hallal PC, Andersen LB, Bull FC, Guthold R, Haskell W, Ekelund U, Lancet Physical Activity Series Working Group. Global physical activity levels: surveillance progress, pitfalls, and prospects. Lancet. 2012;380:247–57.
Troiano RP, Berrigan D, Dodd KW, Mâsse LC, Tilert T, McDowell M. Physical activity in the United States measured by accelerometer. Med Sci Sports Exerc. 2008;40(1):181–8.
Hagstromer M, Troiano RP, Sjostrom M, Berrigan D. Levels and patterns of objectively assessed physical activity--a comparison between Sweden and the United States. Am J Epidemiol. 2010;171:1055–64.
Aitchison J. The statistical analysis of compositional data. J R Stat Soc Ser B Methodol. 1982;44:139–77.
Aitchison J. The statistical analysis of compositional data. London: Blackburn Press; 2003.
van den Boogaart KG, Tolosana-Delgado R. Analyzing compositional data with R. Berlin: Springer Berlin Heidelberg; 2013.
Aitchison J. The statistical analysis of compositional data. UK: Chapman & Hall Ltd.; 1986.
Pedisic Z. Measurement issues and poor adjustments for physical activity and sleep undermine sedentary behaviour research - the focus should shift to the balance between sleep, sedentary behaviour, standing and activity. Kinesiology. 2014;46:135–46.
Carson V, Tremblay MS, Chaput JP, Chastin SF. Associations between sleep duration, sedentary time, physical activity, and health indicators among Canadian children and youth using compositional analyses. Appl Physiol Nutr Metab. 2016;41:S294–302.
Chastin SF, Palarea-Albaladejo J, Dontje ML, Skelton DA. Combined effects of time spent in physical activity, sedentary behaviors and sleep on obesity and cardio-metabolic health markers: a novel compositional data analysis approach. PLoS One. 2015;10:e0139984.
Fairclough SJ, Dumuid D, Taylor S, Curry W, McGrane B, Stratton G, Maher C, Olds T. Fitness, fatness and the reallocation of time between children’s daily movement behaviours: an analysis of compositional data. Int J Behav Nutr Phys Act. 2017;14:64.
Dumuid D, Stanford TE, Martin-Fernandez JA, Pedisic Z, Maher CA, Lewis LK, Hron K, Katzmarzyk PT, Chaput JP, Fogelholm M, et al. Compositional data analysis for physical activity, sedentary time and sleep research. Stat Methods Med Res. 2017:962280217710835. [Epub ahead of print]
Pedišić Ž, Dumuid D, Olds T. Integrating sleep, sedentary behaviour, and physical activity research in the emerging field of time-use epidemiology: definitions, concepts, statistical methods, theoretical framework, and future directions. Kinesiology. 2017;49:1–18.
Dumuid D, Pedisic Z, Stanford TE, Martin-Fernandez JA, Hron K, Maher CA, Lewis LK, Olds T. The compositional isotemporal substitution model: a method for estimating changes in a health outcome for reallocation of time between sleep, physical activity and sedentary behaviour. Stat Methods Med Res. 2017:962280217737805. [Epub ahead of print]
Jørgensen MB, Korshøj M, Lagersted-Olsen J, Villumsen M, Mortensen OS, Skotte J, Søgaard K, Madeleine P, Thomsen BL, Holtermann A. Physical activities at work and risk of musculoskeletal pain and its consequences: protocol for a study with objective field measures among blue-collar workers. BMC Musculoskel Disord. 2013;14:213. https://doi.org/10.1186/1471-2474-14-213.
Skotte J, Korshoj M, Kristiansen J, Hanisch C, Holtermann A. Detection of physical activity types using triaxial accelerometers. J Phys Act Health. 2014;11:76–84.
Jorgensen MB, Nabe-Nielsen K, Clausen T, Holtermann A. Independent effect of physical workload and childhood socioeconomic status on low back pain among health care workers in Denmark. Spine. 2013;38:E359–66.
Gupta N, Heiden M, Aadahl M, Korshoj M, Jorgensen MB, Holtermann A. What is the effect on obesity indicators from replacing prolonged sedentary time with brief sedentary bouts, standing and different types of physical activity during working days? A cross-sectional accelerometer-based study among blue-collar workers. PLoS One. 2016;11:e0154935.
Gupta N, Stordal CC, Hallman D, Korshøj M, Gomes CI, Holtermann A. Is objectively measured sitting time associated with low back pain? A cross-sectional investigation in the NOMAD study. PLoS One. 2015;10:e0121159.
Hallman DM, Gupta N, Mathiassen SE, Holtermann A. Association between objectively measured sitting time and neck–shoulder pain among blue-collar workers. Int J Environ Res Public Health. 2015;88:1031–42.
Egozcue JJ, Pawlowsky-Glahn V, Mateu-Figueras G, Barceló-Vidal C. Isometric logratio transformations for compositional data analysis. Math Geol. 2003;35:279–300.
Pawlowsky-Glahn V, Buccianti A. Compositional data analysis: theory and applications. UK: Wiley; 2011.
Martın-Fernandez J-A, Daunis-i-Estadella J, Mateu-Figueras G. On the interpretation of differences between groups for compositional data. SORT. 2015;2:231–52.
Filzmoser P, Hron K, Reimann C. Univariate statistical analysis of environmental (compositional) data: problems and possibilities. Sci Total Environ. 2009;407:6100–8.
Canty A, Ripley B. Boot: bootstrap R (S-plus) functions. In: R package version; 2016. p. 13–8.
Davison AC, Hinkley DV. Bootstrap methods and their applications. Cambridge: Cambridge University Press; 1997.
van den Boogaart KG, Tolosana R, Bren M: Compositions: compositional data analysis. R (version ≥ 220) 2014.
Johnson RA, Wichern DW. Applied Multivariate Statistical Analysis. USA: Pearson Education, Limited; 2013.
Mathiassen SE, Jackson JA, Punnett L. Statistical performance of observational work sampling for assessment of categorical exposure variables: a simulation approach illustrated using PATH data. Ann Occup Hyg. 2014;58:294–316.
Holtermann A, Schellewald V, Mathiassen SE, Gupta N, Pinder A, Punakallio A, Veiersted KB, Weber B, Takala EP, Draicchio F, et al. A practical guidance for assessments of sedentary behavior at work: a PEROSH initiative. Appl Ergon. 2017;63:41–52.
Lin YC, Yeh MC, Chen YM, Huang LH. Physical activity status and gender differences in community-dwelling older adults with chronic diseases. J Nurs Res. 2010;18:88–97.
Martinez-Gonzalez MA, Varo JJ, Santos JL, De Irala J, Gibney M, Kearney J, Martinez JA. Prevalence of physical activity during leisure time in the European Union. Med Sci Sports Exerc. 2001;33:1142–6.
Healy GN, Winkler EA, Brakenridge CL, Reeves MM, Eakin EG. Accelerometer-derived sedentary and physical activity time in overweight/obese adults with type 2 diabetes: cross-sectional associations with cardiometabolic biomarkers. PLoS One. 2015;10:e0119140.
Schmid D, Ricci C, Leitzmann MF. Associations of objectively assessed physical activity and sedentary time with all-cause mortality in US adults: the NHANES study. PLoS One. 2015;10:e0119591.
Loprinzi PD, Loenneke JP, Ahmed HM, Blaha MJ. Joint effects of objectively-measured sedentary time and physical activity on all-cause mortality. Prev Med. 2016;90:47–51.
Martín-Fernández JA, Palarea-Albaladejo J, Olea RA. Dealing with Zeros. In: Compositional Data Analysis: Theory and Applications. Chichester: Wiley; 2011. p. 43–58.
Pawlowsky-Glahn V, Egozcue JJ, Tolosana-Delgado R. Modeling and analysis of compositional data. Chichester: Wiley; 2015.
Leite ML. Applying compositional data methodology to nutritional epidemiology. Stat Methods Med Res. 2016;25:3057–65.
Flood RP, Bloemsma MR, Weltje GJ, Barr ID, O’Rourke SM, Turner JN, Orford JD. Compositional data analysis of Holocene sediments from the West Bengal Sundarbans, India: geochemical proxies for grain-size variability in a delta environment. Appl Geochem. 2016;75:222–35.
Honaker J, Katz JN, King G. A fast, easy, and efficient estimator for multiparty electoral data. Polit Anal. 2002;10:84–100.
Pierotti ME, Martin-Fernandez JA, Seehausen O. Mapping individual variation in male mating preference space: multiple choice in a color polymorphic cichlid fish. Evolution. 2009;63:2372–88.
We would like to thank the DPHACTO research group at the National Research Centre for the Working Environment, Copenhagen, Denmark.
The DPHACTO cohort is partly supported by a grant from the Danish government. This study was financially supported by the Swedish Research Council for Health, Working Life and Welfare (Forte Dnr. 2009-1761) and Danish Work Environment Research Fund (journal number 20150017496/4).
Availability of data and materials
The datasets used and/or analysed during the current study are available from the corresponding author on reasonable request.
Ethics approval and consent to participate
All workers provided their written informed consent prior to participation. The DPHACTO study was conducted according to the Helsinki declaration and approved by the regional Ethics Committee (The Capital Region of Denmark, H-2-2012-011).
The authors declare that they have no competing interests.
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Procedure for creating a geometric mean barplot and interpreting it
We assume a compositional data containing three parts b 1 , b 2 , and b 3 (sedentary, standing and PA in our context). The following steps are used to draw a geometric mean barplot:
Calculate the geometric mean for each group, k, (for example men and women) g k separately for each part, b 1 , b 2 , and b 3 ,
calculate the overall geometric mean for each part g combining all individuals,
compute the log-ratio log(g k /g), resulting in three log-ratios per group in our case,
represent all log-ratios per group as bars in a plot.
If g k of a part is equal to g, then the ratio is 1, the corresponding logarithm is 0 and we do not observe any bar in Appendix 2. If g k of a part is greater than the g, then the logarithm of the ratio is positive and we observe a bar on the positive side. On the contrary, if g k of a part is lower than the g, then the log-ratio is negative and we observe a bar on the negative side. In the barplot, we represent the bars for each group for comparisons.
Procedure for making bootstrap percentile confidence intervals for log-ratio differences between groups and interpreting them
The diagram is made using the following steps :
The geometric mean of each behavior (%) in both groups are calculated.
The log-ratio of geometric means of both groups (ie., men/women or younger/older) is computed. For sex, the numerator in the log-ratio is men and denominator is women, while for age groups the numerator is younger and the denominator is older workers.
First, 1000 virtual data sets are drawn with replacement from the source population and of the same size. For each resample, the log-ratio of the geometric mean explained in step ii is calculated. The resulting distribution of 1000 log-ratios are averaged to calculate bootstrapped mean, and the 2.5th and 97.5th percentiles were selected as upper and lower limits of 95%confidence intervals of the bootstrapped mean.
The resulting bootstrapped mean and their confidence intervals are plotted (see Fig. 1) to determine which behavior of a particular ilr contributes to the group differences. If the confidence interval contains the value ‘0’, no difference between the two groups for this particular behavior is identified. Only behaviors for which the intervals are outside 0 are considered responsible for the group differences. Because we use men/young as the numerator and woman/older as the denominator of the log-ratios calculated in step ii, a positive value of the log-ratio means that men/young spent more time in that behavior than women/older workers, and vice versa if it is a negative value.
About this article
Cite this article
Gupta, N., Mathiassen, S.E., Mateu-Figueras, G. et al. A comparison of standard and compositional data analysis in studies addressing group differences in sedentary behavior and physical activity. Int J Behav Nutr Phys Act 15, 53 (2018) doi:10.1186/s12966-018-0685-1
- CoDA-based MANOVA
- Isometric log-ratio