| boot_fast_pcor_replicates | R Documentation |
All bootstrap replicates of the partial correlation between the response and a primary climate window, controlling for the paired control window.
boot_fast_pcor_replicates(p, x_primary, x_control, min_complete = 4L)
p |
object returned by boot_fast_prep(), prepared on the response |
x_primary |
numeric vector, the aggregated primary climate window |
x_control |
numeric vector, the paired aggregated control window |
min_complete |
minimum number of complete cases required |
Uses the identity r_xy.z = (r_xy - r_xz * r_yz) / (sqrt(1 - r_xz^2) * sqrt(1 - r_yz^2)) which reproduces psych::partial.r() exactly, so the three pairwise correlations can each be obtained from the vectorised bootstrap.
numeric vector of length boot_n
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.