p.estimator.laplace: Laplace's estimator of probability

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/p.estimator.R

Description

Compute the estimated probabilities of a given variable with the Laplace's estimator of probability.

Usage

1
2
3
4

Arguments

y

a character or a factor.

weights

a numeric vector for weighting, for example non-response weights.

Value

a numeric vector corresponding to the estimated probabilities.

Author(s)

Emmanuel Rousseaux

References

FIXME

See Also

distribution.

Examples

1
2
3
4
5
data(iris)
p.estimator.laplace(
  y = iris$Species,
  weights = c(rep(0,50),rep(1,100))
)

trim documentation built on May 2, 2019, 5:36 p.m.