eff: Effectiveness Distributions

Description Usage Arguments Value See Also Examples

Description

Density, distribution function, quantile function and random generation for an effectiveness distribution.

Usage

1
2
3
4
5
6
7
deff(x, .eff)

peff(q, .eff)

qeff(p, .eff)

reff(n, .eff)

Arguments

x, q

vector of quantiles.

.eff

the eff object representing the effectiveness distribution.

p

vector of probabilities.

n

number of observations.

Value

deff gives the density, peff gives the distribution function, qeff gives the quantile function, and reff generates random variates.

See Also

effCont for continuous distributions, and effDisc for discrete distributions.

Examples

1
2
3
4
5
6
7
8
# sample distribution from AP scores
e <- effCont_beta(web2010ap[,1])
# pdf integrates to 1
integrate(deff, lower = 0, upper = 1, .eff = e)
# qeff (quantile) is the inverse of peff (cumulative)
qeff(peff(.2, e), e)
# random generation of 100 scores
r <- reff(100, e)

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