pred.smooth.2: Calculates the conditional mean function
Description
Helper function; calculates the condition mean of Y given S, based on Study A data
Usage
pred.smooth.2(kernel.use,kernel.apply, bw,outcome)
Value
expected outcome for each surrogate value
Arguments
- kernel.use
surrogate values in the control group in Study A
- kernel.apply
surrogate values in Study B
- bw
bandwidth
- outcome
outcome in the control group in Study A