norm_drl: This is a wrapper of the C++ function that normalizes the...

View source: R/ndr_learner.R

norm_drlR Documentation

This is a wrapper of the C++ function that normalizes the weights for the NDR-learner

Description

This is a wrapper of the C++ function that normalizes the weights for the NDR-learner

Usage

norm_drl(alpha, m_mat, y, w_mat, e_mat)

Arguments

alpha

Sparse matrix containing the weights for each observation to be predicted

m_mat

n x T+1 matrix with fitted outcome values.

y

Vector of variable to be predicted.

w_mat

Logical matrix of treatment indicators (n x T+1). For example created by prep_w_mat.

e_mat

n x T+1 matrix with propensity scores.

Value

NDR-learner CATEs.


MCKnaus/causalDML documentation built on Aug. 19, 2023, 5:47 p.m.