View source: R/bootstrap_CIs.R
Function to calculate a pointwise confidence interval (CI) band for a single
smooth term, based on the output of bootstrap_pffr
.
This function is normally called more comfortably by using calc_bootstrapCIs
.
However, compared to the latter function, it also offers the additional
possibility to compute CIs for differences of two smooths.
NOTE: Only 1D and 2D smooths are currently handled correctly!
1 | calc_singleBootstrapCI(bs_results, select, alpha = 0.05)
|
bs_results |
Output of function |
select |
Index of smooth term to be looked at. If a vector of length two is passed, then the CI will be computed for the difference of the second smooth minus the first smooth. |
alpha |
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.