generateData: Generates example data

Description Usage Arguments Value Examples

View source: R/generateData.R

Description

Generates n example data samples for constructing and rcDT model.

Usage

1
generateData(n = 1000)

Arguments

n

numeric. Number of example samples to be generated.

Value

Summary of a single interaction tree. Each 'node' begins with "0" indicating the root node, followed by a "1" or "2" indicating the less than (or left) child node or greater than (or right) child node. Additionally, the number of observations 'size', number treated 'n.1', number on control 'n.0', and treatment effect 'trt.effect' summaries are provided. The splitting information includes the column of the chosen splitting variable ‘var', the variable name ’vname', the direction the treatment is sent 'cut.1' ("r" for right child node, and "l" for left), the chosen split value 'cut.2', and the estimated value function 'score'.

Examples

1
dat <- generateData()

kdoub5ha/mvITR documentation built on April 7, 2020, 3:59 a.m.