eff.disc
This is the base S3 class for all discrete effectiveness distributions, which is itself a
subclass of eff
. Function effDisc_new
is the constructor of the class.
effDisc_new(p, support, df, x = NULL)
the values of the distribution function at the support points.
the support of the distribution.
the effective degrees of freedom of the distribution.
the sample of effectiveness scores used to fit the distribution. Defaults to
NULL
.
an object of class eff.disc
, with the following components:
mean |
the expected value. |
var |
the variance. |
df |
the degrees of freedom (effective number of parameters) for model selection. |
support |
the support of the distribution. |
data |
the sample data used to fit the distribution, or NULL if none. |
model |
a list with the family-specific data. |
A new distribution family is expected to build new objects through this constructor. Default
implementations are readily available for methods deff
, peff
,
qeff
and reff
.
effDisc
for a list of currently implemented distribution families,
effDiscFit
to fit distributions, and effDisc-helper
for helper
functions.
For continuous distributions, see eff.cont
.