weight_fun: Weight for a fitted CATE model

View source: R/hte.R

weight_funR Documentation

Weight for a fitted CATE model

Description

Weight for a fitted CATE model

Usage

weight_fun(fit, X, ...)

## S3 method for class 'CATE'
weight_fun(fit, X, ...)

Arguments

fit

A fitted model object.

X

Covariate matrix.

...

Additional arguments passed to methods.

Value

Numeric vector of weights.

Methods (by class)

  • weight_fun(CATE): Weight for a "CATE" object: constant 1 for each row of X, since the outcome model has a squared-error loss.

See Also

weight_fun.CATE


dScoreTest documentation built on Sept. 3, 2026, 1:06 a.m.