Correlated outcomes with different data subsets

Does this thread help?

Note also that if the gold standard variable and the test outcomes are binary or categorical, then there are often good reasons to focus on sensitivity and specificity rather than overall predictive power in a regression (the latter will potentially be sensitive to the composition of the sample).