View source: R/hawkes_em_functions.R
| set_parms | R Documentation |
For a given pp object with a given kernel_type, generate random starting values for EM algorithm. Currently only implemented for "dgamma". To Do: implement other kernels, generate parameters that follow equality constraints.
set_parms(pp_obj, kernel_type = "dgamma", constraints = NULL)
pp_obj |
a |
kernel_type |
currently only implemented for |
constraints |
currently not implemented. |
A named list of numeric arrays with components c("mu", "alpha", "k_parm1", "k_parm2") defined as follows. Let n_margins denote the attr(pp_obj, "n_margins"). Then "mu" is the n_margins-vector of baseline parameters; "alpha" is the n_margins-by-n_margins matrix of intensity parameters; "k_parm1" is the n_margins-by-n_margins matrix containing the first arg to the response kernels; "k_parm2" is the n_margins-by-n_margins matrix containing the second arg to the response kernels.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.