Description Usage Arguments Value Methods (by generic) See Also
From TrtDataIdeal
object, randomly assign treatment labels to all samples and
generate a TrtDataObj
object.
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, ...)
|
object |
A |
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. |
An TrtDataObj
object.
generateTrtData:
Method to randomly assgin treatment and generate tratment data object
TrtDataObj-class
TrtDataIdeal-class
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.