spatstat (version 1.36-0)

rcellnumber: Generate Random Numbers of Points for Cell Process

Description

Generates random integers for the Baddeley-Silverman counterexample.

Usage

rcellnumber(n, N = 10)

Arguments

n
Number of random integers to be generated.
N
Distributional parameter: the largest possible value. An integer greater than 1.

Value

  • An integer vector of length n.

Details

This function generates random integers which have mean and variance equal to 1, but which do not have a Poisson distribution. The random integers take the values $0$, $1$ and $N$ with probabilities $1/N$, $(N-2)/(N-1)$ and $1/(N(N-1))$ respectively. See Baddeley and Silverman (1984).

References

Baddeley, A.J. and Silverman, B.W. (1984) A cautionary example on the use of second-order methods for analyzing point patterns. Biometrics 40, 1089-1094.

See Also

rcell

Examples

Run this code
rcellnumber(30, 3)

Run the code above in your browser using DataCamp Workspace