View source: R/dendRolAB_source_code_0.3.R
btfs | R Documentation |
The function bootstraps linear regression parameters between a predictor and predictand for two different periods of equal length. Bootstrapped regression parameter ratios are computed between the two periods and tested for equality (equalling a ratio of 1). If the true regression parameter ratio is unlikely to be 1 as derived from empirical cumulative density functions, the regression parameter is deemed instable over the two periods. In addition to BTFS the classic tests reduction of error and coefficient of efficiency are also bootstrapped and displayed. However, RE and CE were shown to be less sensitive to instability if compared to BTFS (see Buras et al., 2017).
btfs(x, y, boot.n = 1000)
x |
The predictor. |
y |
The predictand. |
boot.n |
Number of iterations for the bootstrapping. |
Make sure x and y have equal lenght, otherwise an error will occur.
stats |
Output matrix containing the regression parameter ratios as well as the corresponding p-values. If p-values undergo 0.05, the parameter can be considered instable over time To allow for compatibility with classic tests such as reduction of error and coefficient of efficiency, these metrics are also bootstrapped and displayed. |
boot.mat |
Matrix containing the regression parameter estimates for each iteration which can be visualized if plotting the output of the function. |
Please check out dendroschool.org for video tutorials on how to apply BTFS.
Allan Buras
Buras, Zang, Menzel, 2017: Testing the stability of transfer functions. Dendrochronologia 42: 56-62. http://dx.doi.org/10.1016/j.dendro.2017.01.005
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.