DOI: 10.6084/m9.figshare.3517478
title: Supplement 1. MATLAB and SAS code necessary to replicate the simulation models and other demographic analyses presented in the paper.

description: File List Code_and_Data_Supplement.zip (md5: dea8636b921f39c9d3fd269e44b6228c) Description The supplementary material provided includes all code and data files necessary to replicate the simulation models other demographic analyses presented in the paper. MATLAB code is provided for the simulations, and SAS code is provided to show how model parameters (vital rates) were estimated. The principal programs are Figure_3_4_5_Elasticity_Contours.m and Figure_6_Contours_Stochastic_Lambda.m which perform the elasticity analyses and run the stochastic simulation, respectively. The files are presented in a zipped folder called Code_and_Data_Supplement. When uncompressed, users may run the MATLAB programs by opening them from within this directory. Subdirectories contain the data files and supporting MATLAB functions necessary to complete execution. The programs are written to find the necessary supporting functions in the Code_and_Data_Supplement directory. If users copy these MATLAB files to a different directory, they must add the Code_and_Data_Supplement directory and its subdirectories to their search path to make the supporting files available. More details are provided in the README.txt file included in the supplement. The file and directory structure of entire zipped supplement is shown below. <pre> Folder PATH listing Code_and_Data_Supplement | Figure_3_4_5_Elasticity_Contours.m | Figure_6_Contours_Stochastic_Lambda.m | Figure_A1_RefitG2.m | Figure_A2_PlotFecundityRegression.m | README.txt | +---FinalDataFiles +---Make Tables | README.txt | Table_lamANNUAL.csv | Table_mgtProbPredicted.csv | +---ParameterEstimation | | Categorical Model output.xls | | | +---Fecundity | | Appendix_A3_Fecundity_Breakpoint.sas | | fec_Cat_Indiv.sas | | Mean_Fec_Previous_Study.m | | | +---G1 | | G1_Cat.sas | | | +---G2 | | G2_Cat.sas | | | +---Model Ranking | | Categorical Model Ranking.xls | | | +---Seedlings | | sdl_Cat.sas | | | +---SS | | SS_Cat.sas | | | +---SumSrv | | sum_Cat.sas | | | \---WinSrv | modavg.m | winCatModAvgfitted.m | winCatModAvgLinP.m | winCatModAvgMu.m | win_Cat.sas | +---ProcessedDatafiles | fecdat_gm_param_est_paper.mat | hierarchical_parameters.mat | refitG2_param_estimation.mat | \---Required_Functions | hline.m | hmstoc.m | Jeffs_Figure_Settings.m | Jeffs_startup.m | newbootci.m | sem.m | senstuff.m | vline.m | +---export_fig | change_value.m | eps2pdf.m | export_fig.m | fix_lines.m | ghostscript.m | license.txt | pdf2eps.m | pdftops.m | print2array.m | print2eps.m | +---lowess | license.txt | lowess.m | +---Multiprod_2009 | | Appendix A - Algorithm.pdf | | Appendix B - Testing speed and memory usage.pdf | | Appendix C - Syntaxes.pdf | | license.txt | | loc2loc.m | | MULTIPROD Toolbox Manual.pdf | | multiprod.m | | multitransp.m | | | \---Testing | | arraylab13.m | | arraylab131.m | | arraylab132.m | | arraylab133.m | | genop.m | | multiprod13.m | | readme.txt | | sysrequirements_for_testing.m | | testing_memory_usage.m | | testMULTIPROD.m | | timing_arraylab_engines.m | | timing_matlab_commands.m | | timing_MX.m | | | \---Data | Memory used by MATLAB statements.xls | Timing results.xlsx | timing_MX.txt | +---province | PROVINCE.DBF | province.prj | PROVINCE.SHP | PROVINCE.SHX | README.txt | +---SubAxis | parseArgs.m | subaxis.m | +---suplabel | license.txt | suplabel.m | suplabel_test.m | \---tight_subplot license.txt tight_subplot.m </pre>