Description Usage Arguments Details Value Note Author(s) References See Also Examples
Functions to create and explore CountingProcessSamplePath
objects. These objects are complementary to the spikeTrain
objects, the latter being in fact point processes representations.
1 2 3 4 5 6 7 8 9 | mkCPSP(st, from = floor(min(st)), to = ceiling(max(st)))
as.CPSP(x)
## S3 method for class 'CountingProcessSamplePath'
print(x, digits = 5, ...)
## S3 method for class 'CountingProcessSamplePath'
plot(x, y, col, lwd, xlim, ylim,
xlab, ylab, xaxs, yaxs, main, ...)
## S3 method for class 'CountingProcessSamplePath'
lines(x, ...)
|
st |
A |
from |
A |
to |
A |
x |
A |
digits |
An |
y |
Not used but required by the |
col,lwd,xlim,ylim,xlab,ylab,main,xaxs,yaxs |
See |
... |
Not used in |
CountingProcessSamplePath objects are complementary to
spikeTrain objects. They are also used to represente slightly
more general properties of these objects and are directed towards
model testing.
More formaly, if we observe n events at times {t1,...,tn} such that, from < t1 < ... < tn <= to, the counting process sample path is the right continuous function defined by:
N(t) = # {tj : from < tj <= t}
where # stands for the number of elements of a set.
mkCPSP returns an object of class
CountingProcessSamplePath. This object is a list with
the following components:
cpspFct |
a right continuous |
ppspFct |
a |
spikeTrainFct |
a |
from |
argument |
to |
argument |
call |
the matched call. |
Functions plot and lines are used for their side
effects, function print returns a short description of the
object corresponding to the summary returned by function
summary.spikeTrain for spikeTrain
objects. Function as.CPSP returns a CountingProcessSamplePath.
This functions are directed towards model testing, don't be surprised
if they look redundant with the corresponding functions for
spikeTrain objects. An apparent difference of detail with the
latter is that no scale (like seconds) is assumed by default for
CountingProcessSamplePath objects. This is to cope in a natural
way with the time transformation / rescaling procedures used to test
conditional intensity models.
Christophe Pouzat christophe.pouzat@gmail.com
D. R. Cox and P. A. W. Lewis (1966) The Statistical Analysis of Series of Events. John Wiley and Sons.
Brillinger, D. R. (1988) Maximum likelihood analysis of spike trains of interacting nerve cells. Biol. Cybern. 59: 189–200.
Johnson, D.H. (1996) Point process models of single-neuron discharges. J. Computational Neuroscience 3: 275–299.
summary.CountingProcessSamplePath,
print.CountingProcessSamplePath.summary,
plot.CountingProcessSamplePath.summary,
summary.spikeTrain,
print.spikeTrain,
plot.spikeTrain,
as.spikeTrain
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## A simple illustration with Ogata's hearthquakes data set
data(ShallowShocks)
plot(mkCPSP(ShallowShocks$Date),
xlab="Time (days)",
main="Shallow Shocks Counting Process of Ogata 1988")
## An illustration with on of STAR's data neuroanl dicharge data set
data(e060824spont)
## Create the object from a spikeTrain
n1spt.cp <- as.CPSP(e060824spont[["neuron 1"]])
## print it
n1spt.cp
## plot it
plot(n1spt.cp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.