y_prep: This function prepares the fitted values of the outcome after...

Description Usage Arguments Value

View source: R/dmlmt.R

Description

This function prepares the fitted values of the outcome after variable selection.

Usage

1
y_prep(x, t, y, nm_list)

Arguments

x

Matrix of covariates (N x p matrix)

t

Matrix of binary treament indicators (N x # of treatments matrix) each column contains a binary indicator for each tratment

y

Vector of outcomes

nm_list

List with length = # of treatments containing list with the selected variable names for each treatment level

Value

y_prep returns a N x # of treatments matrix with the fitted values for each treatment level.


MCKnaus/dmlmt documentation built on Dec. 4, 2020, 9:48 a.m.