R/hte.R
weight_fun.Rd
Weight for a fitted CATE model
weight_fun(fit, X, ...) # S3 method for class 'CATE' weight_fun(fit, X, ...)
A fitted model object.
Covariate matrix.
Additional arguments passed to methods.
Numeric vector of weights.
weight_fun(CATE): Weight for a "CATE" object: constant 1 for each row of X, since the outcome model has a squared-error loss.
weight_fun(CATE)
"CATE"
X
weight_fun.CATE