prep_w_mat: Creates matrix of binary treament indicators (n x T+1) where...

View source: R/utils_effects.R

prep_w_matR Documentation

Creates matrix of binary treament indicators (n x T+1) where each column contains a binary indicator for one treatment.

Description

Creates matrix of binary treament indicators (n x T+1) where each column contains a binary indicator for one treatment.

Usage

prep_w_mat(w)

Arguments

w

Treatment vector. Provide as factor to control ordering of the treatments, otherwise program orders treatments in ascending order or alphabetically.

Value

Logical matrix of treatment indicators (n x T+1).


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