fit_mhawkes(): the decay of the excitement of stream j is now governed by the decay rate of stream j (beta[j]), as documented, i.e., the intensity of stream j is mu_j + sum_k alpha_jk sum_{i in k} exp(-beta_j (t - t_i)). Previously the decay rate of the stream causing the excitement was used. alpha[j, k] is now constrained to be at most beta[j]. Estimates for models with unequal decay rates will change.fit_mlgcp(): the coefficient linking each mark to the point process (marks_coefs_pp) now multiplies the log intensity of the point process. Previously it multiplied the log of the expected number of events in the area around each mesh node, which made the mark intercepts and links depend on the mesh. In addition, a mark with fields = 0 no longer has the point process field added to its linear predictor. Estimates of betamarks and marks_coefs_pp will change.fit_lgcp() (spatiotemporal): mesh nodes with no area within the domain are now excluded from the likelihood (as for the spatial model); previously they were included, biasing the estimates when the mesh extended beyond the domain.fit_lgcp() (spatiotemporal): counts are now ordered by time knot regardless of the order of the data (previously unsorted data gave incorrect results), time knots with no events no longer cause a crash, events at the last knot are no longer dropped, and an informative error is given if any time is outside the range of the time knots.sim_lgcp() (spatiotemporal): now works for any time mesh.fit_mhawkes(): corrected the compensator, which subtracted the final event from every stream rather than only from the stream it belongs to.show_multivariate_hawkes(): the fitted intensity now uses the correct (previously transposed) alpha matrix.fit_mlgcp(): locs can now be a data.frame as well as a matrix.fit_stelfi(): a starting value for the background rate can be given as mu (previously ignored unless given as coefs).fit_stelfi(): warns if the mesh is too coarse to accurately integrate the estimated spatial self-excitation kernel over the domain.get_weights(), and the counting of events around each mesh node used by fit_lgcp() and fit_mlgcp(), are now vectorised (one spatially indexed sf call rather than one per mesh node), and the dual mesh is built more efficiently. Results are unchanged, but data preparation for large meshes is much faster (e.g., from about a minute to under two seconds for a mesh with 12,000 nodes and 4,000 events).get_weights(): a domain sf with more than one feature (e.g., several adjacent polygons) is now combined before the weights are calculated. Previously the weights of mesh nodes whose dual cell overlapped more than one feature were incorrect.fit_mhawkes() (multivariate Hawkes model) have updated coefficient names to include dimensionfit_mhawkes()INLA functionality to fmesherfit_mhawkes() and fit_mlgcp()show_hawkes_GOF(), compensator plotted on goodness of fit plotsmeshmetrics(), show_hawkes_GOF(), and get_fields()sim_hawkes(..., method = "2") and sim_lgcp()Model fitting functions include
fit_hawkes() and fit_hawkes_cbf() to fit self-exciting Hawkes processes to temporal point pattern datafit_lgcp() fits a log-Gaussian Cox process to either spatial or spatiotemporal point pattern data. If a spatiotemporal model is fitted an AR1 process is assumed for the temporal progressionfit_mlgcp() fits a joint likelihood model between the point locations and mark(s)fit_stelfi() fits self-exciting spatiotemporal Hawkes models to point pattern data. The self-excitement is Gaussian in space and exponentially decaying over time. In addition, a GMRF can be included to account for latent spatial dependency