hpp.lik: Homogeneous Poisson process likelihood

Description Usage Arguments Value Author(s) See Also Examples

View source: R/poisson.R

Description

Get the likelihood of a rate parameter at a specific time for observed HPP event times.

Usage

1
hpp.lik(x, T1, rate)

Arguments

x

a vector of HPP event times

T1

Calculate likelihood at this time

rate

the putative HPP event rate

Value

Returns a numerical value for the likelihood.

Author(s)

Kristian Brock - Author, Daniel Slade - Contributor

See Also

hpp.mle, nhpp.lik

Examples

1
2
3
4
5
X = c(0.17, 0.39, 0.63, 0.78, 0.99)
hpp.lik(X, T1 = 1, rate = 4)
hpp.lik(X, T1 = 1, rate = 5)
hpp.lik(X, T1 = 1, rate = 6)
# 5 is the most likely of these three rates

Example output

[1] 2.931472
[1] 3.04719
[1] 2.958797

poisson documentation built on May 2, 2019, 6:53 a.m.