Published June 22, 2023
| Version 1
Software
Open
R code for the article "Addition of soluble fiber to standard purified diets is important for gut morphology in mice"
Description
Below, R lines used for conducting statistical analysis, i.e., introducing some descriptive statistic and performing statistical tests.
Data were visualized by boxplots. Then, linear mixed models were fitted (R function "lmer"). Specifically, all the outcomes of interest ("a") were modeled depending on treatment groups as fixed effect ("Groups") and a random intercept effect ("Number").
As explorative analysis, Dunnett's tests for comparisons of the treatment groups versus a control group were conducted and visualized by confidence intervals. Specifically, two approaches were employed to assess the significance of pairwise comparisons between the treatment and two control groups.
Files
BAL-1-script_pub-v7.pdf
Files
(191.9 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:f54e6ec04bec7758c81b5f905940fb64
|
187.5 kB | Preview Download |
|
md5:9051621e93d99f0756f967c73907ea44
|
4.4 kB | Download |
Additional details
References
- R Core Team (2023). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. https://www.R-project.org/
- Bates, D., Mächler, M., Bolker, B., and Walker, S. (2015). Fitting Linear Mixed-Effects Models Using lme4. Journal of Statistical Software, 67(1), 1–48. https://doi.org/10.18637/jss.v067.i01
- Wickham, H. (2016). ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York. https://ggplot2.tidyverse.org
- Hothorn, T., Bretz, F., and Westfall, P. (2008). Simultaneous Inference in General Parametric Models. Biometrical journal, 50(3), 346–363. https://doi.org/10.1002/bimj.200810425