4
$\begingroup$

I am interested in examining how the species diversity of bird communities change following timber harvest and have used Vegan in R to run my analyses. Below is a sample of my count data. Plot names are in the columns and corresponding species counts are in the rows (species are a 4-letter code).

    SRSFC1_post SRSFC1_pre SRSFT1_post SRSFT1_pre SRSFT2_post 
AMRE           0          0           1          0           0          
AMRO           5          1           5         12           1          
BCCH           1          2           1          3           4         
BHCO           0          0           0          0           0  

I calculated Shannon's index for each plot, but have not been able to calculate standard errors for the indexes. Can anyone advise me on how to calculate standard error for the Shannon's index in R? If more details are needed please let me know and thank you in advance.

Update - I used bootstrapping to calculate confidence intervals as well as to compare to Shannon's indices for bird communities pre- and post-harvest. My understanding is that bootstrapping essentially works by repeatedly taking a sub-sample of a data set, and confidence intervals can be calculated using these data sets.

For folks that have similar questions I found Mark Gardener's book 'Community Ecology: Analytical Methods Using R and Excel' to be an excellent resource. This topic is addressed in Chapter 9 and R code is provided (I used code on pg. 237).

Books Website: http://www.gardenersown.co.uk/Education/Lectures/Community%20Ecology%20Support%20Files.htm

$\endgroup$
7
  • 1
    $\begingroup$ Questions solely about how software works are off topic here, but you may have a real statistical question buried here. You may want to edit your question to clarify the underlying statistical issue. You may find that when you understand the statistical concepts involved, the software-specific elements are self-evident or at least easy to get from the documentation. $\endgroup$ Commented Dec 31, 2015 at 22:15
  • $\begingroup$ +1, I've wondered about this myself. Such indices are used in demography as well. Question is pretty straight forward, but can you describe your data snippet? $\endgroup$
    – Andy W
    Commented Jan 1, 2016 at 3:08
  • 1
    $\begingroup$ To compute a standard error you need to know what distribution the statistic follows. I am not there is any good theory on how these diversity metrics will be distributed. Furthermore none of there metrics consider issues of detectability (i.e., how many species you missed) so any standard error estimate will be an underestimate. Finally when all else fails, you can consider bootstrapping your statistic (which has its own). $\endgroup$
    – Rider_X
    Commented Jan 1, 2016 at 4:50
  • $\begingroup$ @AndyW The data I posted above is a portion of bird survey data. The 1st column is the 4-letter code for a bird species and the counts correspond to the number of each species observed in each plot (column labels). $\endgroup$
    – LeahB
    Commented Jan 4, 2016 at 15:30
  • $\begingroup$ Eric Smith in an Encyclopedia entry Ecological Statistics states in regards to diversity measures "variance estimates may be calculated for these measures using the delta method, or the jackknife for bootstrap". He gives two references for this statement, Biostatistical Analysis (Zar, 1984) and Heltsche & Forrester (1985) Statistical evaluation of the jackknife estimate of diversity when using quadrat samples. $\endgroup$
    – Andy W
    Commented Jan 4, 2016 at 16:04

1 Answer 1

1
$\begingroup$

The question is answered by OP, but as part of the question text! I copy parts of that answer here, so that the Q is formally answered.

I used bootstrapping to calculate confidence intervals as well as to compare to Shannon's indices for bird communities pre- and post-harvest. My understanding is that bootstrapping essentially works by repeatedly taking a sub-sample of a data set, and confidence intervals can be calculated using these data sets.

For folks that have similar questions I found Mark Gardener's book 'Community Ecology: Analytical Methods Using R and Excel' to be an excellent resource. This topic is addressed in Chapter 9 and R code is provided (I used code on pg. 237).

$\endgroup$
1
  • 1
    $\begingroup$ This is correct for calculating standard errors, but the bias in plug-in estimates of the Shannon index leads to problems with where to place the confidence intervals. See this question and its answers for details. $\endgroup$
    – EdM
    Commented May 14, 2019 at 0:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.