Helper function; calculates the expected outcome for control group surrogate values using treatment group surrogate and outcome information.
pred.smooth(zz, zi.one, bw = NULL, y1, weight = NULL)
expected outcome for each surrogate value in the control group
surrogate values in the treatment group; used to estimate conditional mean function
surrogate values in the control group
bandwidth
outcome in the treatment group
weight
Layla Parast
Details are included in the documentation for R.s.estimate
Parast, L., McDermott, M., Tian, L. (2016). Robust estimation of the proportion of treatment effect explained by surrogate marker information. Statistics in medicine, 35(10):1637-1653.