DataDistribution
is an abstract class used to represent the distribution
of a sufficient statistic x
given a sample size n
and a
single parameter value theta
.
Details
This abstraction layer allows the representation of t-distributions
(unknown variance), normal distribution (known variance), and normal
approximation of a binary endpoint.
Currently, the two implemented versions are Normal-class
and
Binomial-class
.
The logical option two_armed
allows to decide whether a one-arm or
a two-arm (the default) design should be computed. In the case of a two-arm
design all sample sizes are per group.