boot_fast_pcor_replicates: boot_fast_pcor_replicates

View source: R/boot_fast.R

boot_fast_pcor_replicatesR Documentation

boot_fast_pcor_replicates

Description

All bootstrap replicates of the partial correlation between the response and a primary climate window, controlling for the paired control window.

Usage

boot_fast_pcor_replicates(p, x_primary, x_control, min_complete = 4L)

Arguments

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

Details

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.

Value

numeric vector of length boot_n


dendroTools documentation built on Nov. 23, 2026, 9:07 a.m.