Hi,
first of all, I really enjoy dplR. Thank you for all the work you have put into this package!
I have a question regarding the calculation of Glk in dplR: if one series lacks growth change from one year to the other, while the other series does not, you calculate a "1" for that year. But shouldn't it be a "2"?
Let's take an example of two five-year long series, which feature growth changes (sign()) as follows:
series 1
series 2
series 1 - series 2
-1
-1
0
-1
1
2
-1
0
1
1
1
0
colSum:
3
Your Glk-value would be 1-(3/(2*4) = 0.625
Maybe I am mistaken, but I would think Glk should be 0.5, because only the first and last year feature similar growth change.
Hi, first of all, I really enjoy dplR. Thank you for all the work you have put into this package!
I have a question regarding the calculation of Glk in dplR: if one series lacks growth change from one year to the other, while the other series does not, you calculate a "1" for that year. But shouldn't it be a "2"?
Let's take an example of two five-year long series, which feature growth changes (sign()) as follows:
Your Glk-value would be 1-(3/(2*4) = 0.625 Maybe I am mistaken, but I would think Glk should be 0.5, because only the first and last year feature similar growth change.
In case I am wrong, I excuse for the issue...
All the best, Manuel