pEmp: Empirical estimator of a discrete function

View source: R/Simul_kmon.R

pEmpR Documentation

Empirical estimator of a discrete function

Description

Empirical estimator of a discrete function

Usage

pEmp(X)

Arguments

X

A random sample from a discrete probability.

Details

The empirical estimator is defined as p(j)=\Sigma_{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

Examples

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

pkmon documentation built on Aug. 28, 2023, 5:06 p.m.