Learn R Programming

tehtuner (version 0.3.0)

permute: Generate a dataset with permuted treatment indicators

Description

Sets the marginal treatment effect to zero and then permute all treatment indicators.

Usage

permute(data, Trt, Y, zbar)

Value

a permuted dataset of the same size as data

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.

Y

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

zbar

the estimated marginal treatment effect