permute: Generate a dataset with permuted treatment indicators

View source: R/permute.R

permuteR 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


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