View source: R/FitAllMultAddModels.R
FitAllMultAddModels | R Documentation |
Wrapper function to fit all 2K+1 models (multiplicative, additive, and nonperiodic).
FitAllMultAddModels(
K,
spikes,
f.common.table,
setup.pars,
terminal.points,
ct,
user.defined.frequencies = NULL
)
K |
the number of frequency components in the largest model to fit. |
spikes |
a list of spike trains. |
f.common.table |
a table whose names contain the high-amplitude frequency components as computed by |
setup.pars |
a list of additional parameters for the likelihood function, computed by |
terminal.points |
a numeric vector containing the time points at which |
ct |
a numeric vector containing the estimated piecewise constant intensity function |
user.defined.frequencies |
(= NULL) a numeric vector of length at least K containing the frequencies (in decreasing order of importance) to try in the model. By default this is NULL, and frequencies will be directly read from f.common.table. |
A list of length 3 is returned. The first item in the list is a list of frequency estimates for each model. The second item in the list is a list of phase estimates for each model. The third item in the list is a list of eta/gamma estimates and fit criteria for each model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.