validate_Trt: Check if Trt is a valid input to tunevt

View source: R/validate_input.R

validate_TrtR Documentation

Check if Trt is a valid input to tunevt

Description

Check if Trt is a valid input to tunevt

Usage

validate_Trt(data, Trt)

Arguments

data

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

Trt

a string specifying the name of the column of data contains the treatment indicators.

Value

TRUE if Trt is a valid input. Errors otherwise.


tehtuner documentation built on April 3, 2023, 5:16 p.m.