simulate-TwoStageDesign-numeric-method: Draw samples from a two-stage design

Description Usage Arguments Value See Also Examples

Description

simulate allows to draw samples from a given TwoStageDesign.

Usage

1
2
## S4 method for signature 'TwoStageDesign,numeric'
simulate(object, nsim, dist, theta, seed = NULL, ...)

Arguments

object

TwoStageDesign to draw samples from

nsim

number of simulation runs

dist

data distribution

theta

location parameter of the data distribution

seed

random seed

...

further optional arguments

Value

simulate() returns a data.frame with nsim rows and for each row (each simulation run) the following columns

See Also

TwoStageDesign

Examples

1
2
3
design <- TwoStageDesign(25, 0, 2, 25, 2, order = 5)
# draw samples assuming two-armed design
simulate(design, 10, Normal(), .3, 42)

adoptr documentation built on June 28, 2021, 5:11 p.m.