Hankin, L.E., Higuera, P.E., Davis, K.T., Dobrowski, S.Z. 2018. Accuracy of node and bud-scar counts for aging two dominant conifers in western North America. Forest Ecology and Management. In Press. Forest Ecology and Management DOI: https://doi.org/10.1016/j.foreco.2018.06.001 Dryad Repository DOI: https://doi.org/10.5061/dryad.63m17n5 Contact: Lacey E. Hankin: lacey.hankin@gmail.com Philip E. Higuera, philip.higuera@umontana.edu Overview: This archive includes two (2) R scripts to reproduce the results (tables and figures) and run the tool presented in Hankin et al. (2018). The archived scripts and data should be extracted to the same directory to run the script for analysis. ------------------------------------------------------------------------- (1) Script_Hankin_et_al_Analysis_Code.R - This is the script to reproduce all analyses, results, tables, and figures. Data file required for script: Data_TreeAges.csv (2) Script_Hankin_et_al_Node_to_Age_Tool.R - This is the script for the corrective tool alone. The tool predicts tree age as a function of field- based node counts, species, and region. This requires the the data file: "Data_AgeTool.csv" and the user's input data, in the format used in the file "Template_NodeData.csv" You should change the file name to suite your purposes. Data file required for script: Data_AgeTool.csv, Template_NodeData.csv ------------------------------------------------------------------------- References for R packages in the script: Bates, D., Maechler, M., Bolker, B., Walker, S. 2015. Fitting Linear Mixed-Effects Models Using lme4. Journal of Statistical Software, 67(1), 1-48. doi:10.18637/jss.v067.i01. Dowle, M. and Srinivasan, A. (2017). data.table: Extension of `data.frame`. R package version 1.10.4-3. https://CRAN.R- project.org/package=data.table Fox, J. and Weisberg, S. 2011. An {R} Companionto Apsplied Regression, Second Edition. Thousand Oaks CA: Sage. URL: http://socserv.socsci.mcmaster.ca/jfox/Books/Companion. Knowles, J.E. and Frederick, C. 2016. merTools: Tools for Analyzing Mixed Effect Regression Models. R package version 0.3.0. https://CRAN.R- project.org/package=merTools Kuznetsova, A., Brockhoff, P., Christensen, R., 2016. Package “lmerTest”: Tests in Linear Mixed Effects Models. R Packag. version 3.0.0 https://cran.r-project.org/package=lmerTest. Lefcheck, J., 2016. Package “ piecewiseSEM ”: Piecewise Structural Equation Modeling in R for ecology, evolution, and systematics. Methods Ecol. Evol. 7, 573–579. Nakagawa, S., Schielzeth, H., 2013. A general and simple method for obtaining R2 from generalized linear mixed-effects models. Methods Ecol. Evol. 4, 133–142. Pinheiro, J., Bates, D. DebRoy, S., Sarkar, D., R Core Team. 2017. nlme: Linear and Nonlinear Mixed Effects Models. R package version 3.1-131, . R Core Team, 2017. R: A language and environment for statistical computing. Revolution Analytics and Weston, S. 2015. foreach: Provides Foreach Looping Construct for R. R package version 1.4.3. https://CRAN.R- project.org/package=foreach Wickham, H. 2007. Reshaping Data with the reshape Package. Journal of Statistical Software, 21(12), 1-20. URL http://www.jstatsoft.org/v21/i12/. Wickham, H. 2009. ggplot2: Elegant Graphics for Data Analysis. Springer- Verlag, New York. Wickham, H. 2011. The Split-Apply-Combine Strategy for Data Analysis. Journal of Statistical Software, 40(1), 1-29. URL http://www.jstatsoft.org/v40/i01/. Wickham, H. 2017. scales: Scale Functions for Visualization. R package version 0.5.0. https://CRAN.R-project.org/package=scales Wickham, H., Francois, R., Henry, L., Muller, K. 2017. dplyr: A Grammar of Data Manipulation. R package version 0.7.4. https://CRAN.R- project.org/package=dplyr. Wilke, C.O. 2017. cowplot: Streamlined Plot Theme and Plot Annotations for 'ggplot2'. R package version 0.8.0. https://CRAN.R- project.org/package=cowplot