fithp: Determine the MLE of Hawkes process numerically

Description Usage Arguments Value Examples

View source: R/fithp.R

Description

Determine the MLE of Hawkes process numerically

Usage

1
fithp(events, end = max(events), vec = c(0.1, 0.2, 0.3))

Arguments

events

event times

end

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

vec

vector of initial parameter values

Value

a hp object indicating the maximum likelihood parameter values (lambda0,alpha,beta) for Hawkes process. This is a non-convex problem and a (unique) solution is not guaranteed.

Examples

1
2
3
hp_obj <- pp_hp(lambda0 = 0.1, alpha = 0.45, beta = 0.5)
sims <- pp_simulate(hp_obj, start = 0, n = 10)
fithp(sims)

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