fithpp: Fit a homogeneous poisson process to event data

Description Usage Arguments Value Examples

View source: R/fithpp.R

Description

Compute maximum likelihood estimator of the rate of a homogeneous Poisson process for the given events.

Usage

1
fithpp(events, end = max(events))

Arguments

events

vector containing the event times.

end

end of observation period, starting from 0 (default is last event)

Value

a hpp object containing the events and the estimated parameter

Examples

1
2
3
pois_y <- pp_hpp(lambda = 1)
events <- pp_simulate(pois_y, end = 10)
fithpp(events)

ppdiag documentation built on Aug. 12, 2021, 5:07 p.m.