Simulation of species turnover along a gradient

Download files

Notices

This simulation is written as VisualBasic-Macro for Microsoft Excel 2003. You can use it for free (see agreements). Once you have unzipped the file you will find an excel document and a text file with the instructions. Open the excel file and read the instructions. I included a short species list from my study area in Bolivia as example. I hope there are no problems (see warning) and you enjoy it!

Short Instruction (see zip-file for the long version)

1. Copy your observed species list on sheet "list". This list contains in
column 1: name of the species (without any cryptic symbols/ letters!)
column 2: notice (whatever you want)
column 3: ID of the interval along the gradient where the specie was found
(depending on your data this interval-ID may be elevational distance, i.e. every 100 m. Notice that you have only one record per specie per interval!)

2. Insert the original distribution of species on sheet "model" in the second line by typing for each interval (column) the number of species you have observed. You can use more than 20 columns. I never tried the maximum. But it should be limited by 250. Don't use the Excel-maximum (256) because the macro calculation needs a column beside this table!
The line "max number of sp." will be calculated automatically by the macro. Don't write anything in this line. Once started the macro, you can observe the progress with the counter in the cell below 'Permutation'. The macro will insert randomly all species in the cells below the 4th line. Each line symbolize the niche for one specie in an interval. The presence of a specie will be marked by "1" - "B" marks the beginning and "E" the end of the distribution. "x" signifies "no more niches in this interval available".

3. Don't change anything on the sheets "rangetab", "count" and "turnover"! When the simulation is terminated you can study this sheets. If you want to run the macro again on the same data, make now a copy. Never start the macro again when there are already changes on the sheet "rangetab".

4. You are now ready to start the macro!
(Notice that you have to activate the macros when you open the document! If Excel doesn't ask you when you open the document you have to change the security level in the Excel options.)
Choose extras\macro\macros... and start the item "turnover" from the list of all macros available (by double-clicking on it or clicking on "execute"). The macro will ask you some properties:

5. Check the result.

6. I recommend to sort the tables by "error" and to consider only those with "error = 0". But you may have other objectives! Then calculate the means and standard deviation as usual.

Warning

I'm not a professional programmer! You can use this VB-macro for free but without any warranty! I checked all problems I meet with my datasets but there may be more problems I don't know!

Agreement

The use of this macro is free. You will need a licence for Microsoft Excel of course. By downloading and using the macro, you must agree not to distribute it in any commercial form. You are most welcome to use this simulation in any way you like for your own research, as long as such use is acknowledged. Please cite the method as: Bach, K., M. Kessler & S.R. Gradstein (2007): A simulation approach to determine statistical significance of species turnover peaks in a species-rich tropical cloud forest. Diversity and Distributions 13: 863–870. The code of the macro is not encrypted and you may improve it. Please inform me if so.