This script simulates data under an example scenario and applies a model to the simulated dataset to estimate trend, thus evaluating the power to detect the trend. The study was designed to evaluate various scenarios (sampling designs, as well as biological parameters that differ between the two study lagoons).