effDisc_dks function

Discrete Effectiveness as Discrete Kernel-smoothed Distribution.

Discrete Effectiveness as Discrete Kernel-smoothed Distribution.

Fits a Beta-Binomial distribution, to the given sample of scores and support points.

effDisc_dks(x, support, mult = 1)

Arguments

  • x: a sample of effectiveness scores between 0 and 1.
  • support: the support of the distribution.
  • mult: a constant to multiply the initially selected bandwidth.

Returns

an object of class eff.disc.dks, which inherits from eff.disc.

Examples

e <- effDisc_dks(web2010p20[,1], seq(0,1,.05)) c(e$mean, e$var) plot(e, plot.data = TRUE) e2 <- effDisc_dks(web2010p20[,1], seq(0,1,.05), mult = 2) c(e2$mean, e2$var) plot(e2, plot.data = TRUE)

References

M.C. Wang and J.V. Ryzing (1981). A Class of Smooth Estimators for Discrete Distributions. Biometrika, 68, 301-309.

See Also

deff, peff, qeff and reff.

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