Description Usage Arguments Details Value Examples
View source: R/dynamic_neural_model-v6.R
Simulate spike trains from DAPP model to binned spiking data
1 2 3 4 |
horizon |
time horizon of the response period (in ms) |
bin.width |
width of the time bins (in ms) to be used to aggregate spike counts |
lengthScale |
an array giving the length scale parameter values to be used for Gaussian process prior. Defaults to |
lsPrior |
an array of the same length as |
hyper |
a list of hyper parameters with the following iterms. 'prec': a 2-vector giving the shape and rate parameters of the gamma distribution on the Dirichlet precision parameter. 'sig0': a scalaer giving the scale of the (centered) logistic distribution used in transforming the Gaussian random curves into curves restricted between 0 and 1. |
nsamp |
number of priors draws to be made |
Primarily intended to be used internally by the summary.dapp
and plot.dapp
functions. Could also be use to draw directly from the model.
Returns a list of class "dapp" containting the following items.
lsProb |
draws of length scale |
alpha.pred |
prior predictive draws of alpha |
prec |
draws of precision |
1 | prior <- dapp.simulate(1000, 25)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.