Learn R Programming

tehtuner (version 0.3.0)

validate_Y: Check if Y is a valid input to tunevt

Description

Check if Y is a valid input to tunevt

Usage

validate_Y(data, Y)

Value

TRUE if Y is a valid input. Errors otherwise.

Arguments

data

a data frame containing a response, binary treatment indicators, and covariates.

Y

a string specifying the name of the column of data contains the response.