Learn R Programming

mppa (version 1.0)

mp: Create objects of class mproc

Description

A function to create objects of class mproc, allowing manipulation of multiple simultaneous point processes.

Usage

mp(..., start = numeric(0), end = numeric(0))

Arguments

...
either a list of vectors of event times, or the same vectors given as a sequence of arguments.
start
the start of observations, must be smaller than all event times. If not specified the start will be set to the smallest event time.
end
the end of observations, must be greater than all event times. If not specified the end will be set to the greatest event time.

Value

An object of class mproc with slots:
events
a list of vectors of event times.
start
the start of observations.
end
the end of observations.

Examples

Run this code
mp(runif(10))
mp(runif(10), runif(10), start=0, end=1)
mp(list(runif(10), runif(10)), start=0, end=1)

Run the code above in your browser using DataLab