mcmc_temporal_catmark | R Documentation |
This function computes the posterior of the parameters of a temporal exponential decay Hawkes model using Metropolis-with-in-Gibbs sampling.
mcmc_temporal_catmark(
times,
marks,
t_max = max(times),
t_mis = NULL,
param_init = NULL,
mcmc_param = NULL,
branching = TRUE,
print = TRUE
)
times |
- vector of arrival times |
marks |
- vector of marks |
t_max |
- maximum time value (default = max(times)) |
t_mis |
- |
param_init |
- list of parameters of initial guess (default = 'NULL, will start with MLE) |
mcmc_param |
- list of mcmc parameters |
branching |
- using branching structure in estimation (default = 'TRUE') |
print |
- print progress (default = 'TRUE') |
The default is to estimate the branching structure which is much more computationally efficient. The model will also account to missing data if t_mis
is provided.
A List containing the mcmc samples (samps), branching structure ('y', if 'TRUE'), and missing data ('zsamps' if 't_mis' is not 'NULL') If 't_mis' is not 'NULL' the mcmc samples will contain 'n_missing', the number of missing points estimated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.