generateTrtData: Randomly assgin treatment and generate tratment data object

Description Usage Arguments Value Methods (by generic) See Also

Description

From TrtDataIdeal object, randomly assign treatment labels to all samples and generate a TrtDataObj object.

Usage

1
2
3
4
5
generateTrtData(object, p.case = 0.5, inc.cutoff = 0, epsilon = 1, ...)

## S4 method for signature 'TrtDataIdeal'
generateTrtData(object, p.case = 0.5,
  inc.cutoff = 0, epsilon = 1, ...)

Arguments

object

A TrtDataIdeal object.

p.case

A number between 0 and 1, indicating the probability to assign the first treatment.

inc.cutoff

A positive number, indicating the cutoff of inclusion.

epsilon

A random variable with mean zero and variance epsilon^2 will be added to the treatment response.

...

Other possible parameters passed to this function.

Value

An TrtDataObj object.

Methods (by generic)

generateTrtData: Method to randomly assgin treatment and generate tratment data object

See Also

TrtDataObj-class TrtDataIdeal-class


SkadiEye/ITRlearn documentation built on May 24, 2019, 1:31 a.m.