Learn R Programming

PNAR (version 1.7)

getN: Count the number of events within a specified time

Description

This function counts the number of events within a specified time.

Usage

getN(x, tt = 1)

Value

The number of events within time tt (possibly 0), for each column of x.

Arguments

x

A matrix of (positive) inter-event times.

tt

A positive time.

Author

Mirko Armillotta, Michail Tsagris and Konstantinos Fokianos.

See Also

rcopula, poisson.MODpq, poisson.MODpq.log

Examples

Run this code
x <- rcopula(n = 100, N = 50, rho = 0.3)
getN(x)

Run the code above in your browser using DataLab