effDisc_dks {simIReff} | R Documentation |
Discrete Effectiveness as Discrete Kernel-smoothed Distribution.
Description
Fits a Beta-Binomial distribution, to the given sample of scores and support points.
Usage
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. |
Value
an object of class eff.disc.dks
, which inherits from
eff.disc
.
References
M.C. Wang and J.V. Ryzing (1981). A Class of Smooth Estimators for Discrete Distributions. Biometrika, 68, 301-309.
See Also
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)
[Package simIReff version 1.0 Index]