
Partial correlation test for one pair given controls (native)
Source:R/stats_primitives_native.R
morie_partial_cor_test.Rd\(r_{xy\cdot z}\) with its t-test on \(n - 2 - |z|\) degrees of
freedom. Reproduces ppcor::pcor.test.
Examples
if (requireNamespace("ppcor", quietly = TRUE)) {
morie_partial_cor_test(mtcars$mpg, mtcars$wt, mtcars$disp)
}
#> estimate p.value statistic n gp Method
#> 1 -0.4713927 0.007430725 -2.878399 32 1 pearson