effDisc_dks: Discrete Effectiveness as Discrete Kernel-smoothed...

Description Usage Arguments Value References See Also Examples

View source: R/effDisc_dks.R

Description

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

Usage

1
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

deff, peff, qeff and reff.

Examples

1
2
3
4
5
6
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)

julian-urbano/simIReff documentation built on May 21, 2019, 9:37 a.m.