permute {tehtuner}R Documentation

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)

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

Value

a permuted dataset of the same size as data


[Package tehtuner version 0.3.0 Index]