eff.disc-class function

Class eff.disc

Class 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)

Arguments

  • p: the values of the distribution function at the support points.
  • support: the support of the distribution.
  • df: the effective degrees of freedom of the distribution.
  • x: the sample of effectiveness scores used to fit the distribution. Defaults to NULL.

Returns

an object of class eff.disc, with the following components:

meanthe expected value.
varthe variance.
dfthe degrees of freedom (effective number of parameters) for model selection .
supportthe support of the distribution.
datathe sample data used to fit the distribution, or NULL if none.
modela list with the family-specific data.

Details

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.

See Also

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.

  • Maintainer: Julián Urbano
  • License: MIT + file LICENSE
  • Last published: 2018-06-15