pEmp: Empirical estimator of a discrete function

Description Usage Arguments Details Value Author(s) Examples

View source: R/Simul_kmon.R

Description

Empirical estimator of a discrete function

Usage

1
pEmp(X)

Arguments

X

A random sample from a discrete probability.

Details

The empirical estimator is defined as p(j)=Σ_{i=1}^n \bold{1}_{x_j=j}.

Value

support

The points of the support of the estimator

count

The counts of the sample

freq

The normalized counts

Author(s)

Jade Giguelay [email protected] http://maiage.jouy.inra.fr/jgiguelay

Examples

1
2
x=rpois(100, lambda=0.3)
ptild=pEmp(x)

Example output



pkmon documentation built on May 29, 2017, 8:35 p.m.