Skip to main content
. Author manuscript; available in PMC: 2021 Mar 11.
Published in final edited form as: Biometrics. 2020 Dec 8;77(1):9–22. doi: 10.1111/biom.13392

Algorithm 1.

Estimating ψ0,s

1: Choose a technique to estimate the conditional means μ0 and μ0,s, eg, ensemble learning with various predictive modeling algorithms (Wolpert, 1992);
2: μ^ ← Regress Y on X using the technique from step (1) to estimate μ0;
3: μ^s ← Regress μ^(X) on Xs using the technique from step (1) to estimate μ0,s;
4: ψ^n,S1ni=1n{Yiμ^s(Xi)}21ni=1n{Yiμ^(Xi)}21ni=1n(YiY¯n)2, as in Equation (10).