I have a correlation between two dimensions $A$ and $B$, each dimension has 1 variable $i$ with $j$ samples. $A_i$ and $B_i$ (Let's call it $r_{Di}$). I also have a correlation of $A_i$ with another variable $C_i$ (Let's say $r_{Ei}$). For each correlation I calculate the $p$-value. For these 2 correlations, I do the correlation between ($r_D$) and ($r_E$) for all the $i$ variables. As I have the $p$-values of each correlation of $A$ with $B$ and each correlation of $A$ with $C$, can I use these $p$-values to do a weighted correlation for the correlation between $r_D$ and $r_E$? If I can use the $p$-values for this correlation how do I combine them?
I could find a question (When combining p-values, why not just averaging?) which seems to imply that there are further uses of $p$-values. But the aim of such methods seems to combine different independent studies and not from the same study.
To calculate those $p$-values are calculated with this function in r package WGCNA, whose descriptions says "Calculates Student asymptotic p-value for given correlations":
function (cor, nSamples) {
T = sqrt(nSamples - 2) * cor/sqrt(1 - cor^2)
2 * pt(abs(T), nSamples - 2, lower.tail = FALSE)
}
w.cor(AB, AC, w = ?)
$\endgroup$