Code for a modeling body growth using a quadratic log-log model.
This code was developed for a project that was looking at the effects of environmental influencers of bone growth, such as rainfall, temperature, etc., in one species.
However, because bones/the skeletal system is a highly dynamic tissue that is sensitive to ontogeny, phylogeny, biomechanical, and environmental factors (de Ricqlès, 1993), we had to control for each factor we are not studying (i.e., ontogeny, phylogeny, and biomechanics), to identify and study the environmental factors/influencers on bone growth.
Because of the nature of the sample (looking at one species), we were able to control for the phylogenic factor. We were also able to control for the biomechanical factors by looking at one bone at a time.
Which left ontogeny that we needed to control for to identify the effects of environment on bone growth.
To consider changes in body size with age during development, or growth, this code models the response variable (in this case bone length) as a function of age, using a quadratic log-log model.
The quadratic log-log model log transforms both age and the response variable.
We have to model bone growth (or body size growth) as a quadratic formula because while bones/body size does increase with age it is not a linear growth or a continuous growth, but at some point in time the growth plateaus and even decreases with age (i.e., at elderly ages).
This code includes:
- Function to filter the data frame to the information that is required.
- Calculates means, min, and max of the response variable, by sex and age group.
- Functions to visualizes the log-log model, by combined sex and separated sex.
- Functions for a loess plot, by combined sex and separated sex.
The data set provided to conducted the analysis is simulated data based on real existing data sets to explore skeletal growth patterns. The simulated data closely resembled actual data in terms of distribution and characteristics, allowing for comprehensive analysis and insights. This approach facilitated the exploration of various scenarios and provided valuable insights for decision-making and planning.
While this code was developed for modeling bone growth/bone size, this code can also be used for:
-
Healthcare and Pharmaceuticals: Understanding the growth patterns of bone or body size can be relevant in medical research, drug development, or treatment planning. Pharmaceutical companies, healthcare providers, and research institutions could leverage this analysis to gain insights into growth patterns and inform medical decisions.
-
Sports and Athletics: In sports, understanding the relationship between age and bone/body size growth can be crucial for talent identification, training programs, and injury prevention. Sports organizations, teams, and trainers could utilize this analysis to better understand the growth trajectories of athletes and optimize performance.
-
Anthropological or Archaeological Studies: Anthropological or archaeological research often involves studying the growth and development of human populations over time. Your analysis could contribute to these fields by providing insights into bone or body size changes across different age groups or populations.
-
Biomechanics and Ergonomics: Knowledge of bone/body size growth patterns can be applied in fields related to biomechanics and ergonomics. For example, designing ergonomic products, creating appropriate work environments, or optimizing equipment sizes for specific age groups can benefit from understanding growth patterns.