Learn R Programming

poisson (version 1.0)

hpp.lik: Homogeneous Poisson process likelihood

Description

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

Usage

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

See Also

hpp.mle, nhpp.lik

Examples

Run this code
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

Run the code above in your browser using DataLab