Supplement 1. R script files and data from both the field introduction and the mesocosm experiment to execute the models described in the manuscript and in Appendix E.

<h2>File List</h2><div> <p><a href="Gamma_Negbin_Fecund.R">Gamma_Negbin_Fecund.R</a> (MD5: 7cd8437e8cd555f777499ef6e3bc279e) -- # R code for fecundity predictions</p> <p><a href="NegBinFecund.R">NegBinFecund.R</a> (MD5: fd282a2e324e20d7529bf51d2d2e14ef) -- # R code for seed model</p> <p><a href="Gamma_Biomass.R">Gamma_Biomass.R</a> (MD5: 5926e4126625a807b86ebf3b48aa1b93) -- # R code for biomass model</p> <p><a href="generalBAYESIANcode.R">generalBAYESIANcode.R</a> (MD5: bce9894d372872da18a3ee5305f571f5) -- # R code for functions used in above code</p> <p><a href="garden.csv">garden.csv</a> (MD5: 19d443db46af62e515e38ad07d8ee499) -- # Field introduction data</p> <p><a href="light_exp_seed.csv">light_exp_seed.csv</a> (MD5: ac8be1d03af3befc0e1f32e8c5311af8) -- # Mesocosm data</p> </div><h2>Description</h2><div> <p>These files are provided to assist in reproduction of our modeling results using the statistical package R. The first supplement (Gamma_Negbin_Fecund) contains R code that jointly samples from the two data sets (garden.csv and light_exp_seed.csv) in order to create predictions of plant fecundity in the field. The hierarchical biomass model (Gamma_Biomass.R) and the seed production model (NegBinFecund.R) are also included separately. </p> </div>