
Outcome weights for the dml_with_smoother
function
Source: R/dml_with_smoother.R
get_outcome_weights.dml_with_smoother.Rd
Post-estimation command to extract outcome weights for double ML run with an outcome smoother.
Usage
# S3 method for class 'dml_with_smoother'
get_outcome_weights(object, ..., all_reps = FALSE)
Arguments
- object
An object of class
dml_with_smoother
, i.e. the result of runningdml_with_smoother
.- ...
Pass potentially generic get_outcome_weights options.
- all_reps
If
TRUE
, outcomes weights of each repetitions passed. DefaultFALSE
.
Value
If
all_reps == FALSE
: get_outcome_weights objectIf
all_reps == TRUE
: additionally listomega_all_reps
: A list containing the outcome weights of each repetition.
References
Knaus, M. C. (2024). Treatment effect estimators as weighted outcomes, https://arxiv.org/abs/2411.11559.