Print and Summary Methods for repeatedTrain Objects

Share:

Description

Print and summary methods for repeatedTrain objects.

Usage

1
2
3
4
5
6
7
## S3 method for class 'repeatedTrain'
print(x,...)
## S3 method for class 'repeatedTrain'
summary(object,
                      responseWindow, acquisitionWindow,...)
## S3 method for class 'summary.repeatedTrain'
print(x,...)

Arguments

x

a repeatedTrain or a summary.repeatedTrain object.

object

a repeatedTrain object

responseWindow

a 2 elements vector specifying the begining and the end of the neuron response.

acquisitionWindow

a 2 elements vector specifying the begining and the end of the acquisition. If missing values are obtained using the floor of the smallest spike time and the ceiling of the largest one.

...

additional arguments passed to function chisq.test or print.

Details

print.repeatedTrain calls plot.repeatedTrain

Value

summary.repeatedTrain returns a LIST of class summary.repeatedTrain with the following components:

nbRepeates

The number of repetitions.

acquisitionWindow

The acquisition window.

stats

A matrix with as many rows as repetitions. The first column contains the total number of spikes generated by the neuron during a given repeat (this column appears under the heading "nb" when the object is printed). The second column contains the corresponding average discharge rate (this column appears under the heading "nu" when the object is printed). If a responseWindow was specified, the third column contains the number of spikes generated by the neuron during the response period and the fourth column contains the corresponding rate (these column appear under the headings "nbR" and "nuR", respectively when the object is printed).

globalPval

The p value of the chi square test for homogeneity of the total number of spikes generated accross repetitions. Thats a rough stationarity test.

responsePval

If a responseWindow was specified, the p value of the chi square test for homogeneity of the number of spikes generated within the "response window" accross repetitions.

Author(s)

Christophe Pouzat christophe.pouzat@gmail.com

See Also

as.repeatedTrain, is.repeatedTrain, plot.repeatedTrain, raster, psth

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Load the Vanillin responses of the first
## cockroach data set
data(CAL1V)
## convert them into repeatedTrain objects
## The stimulus command is on between 4.49 s and 4.99s
CAL1V <- lapply(CAL1V,as.repeatedTrain)
## Generate raster plot for the neurons
raster(CAL1V[["neuron 1"]],c(4.49,4.99))
plot(CAL1V[["neuron 2"]],c(4.49,4.99))
plot(CAL1V[["neuron 3"]],c(4.49,4.99))
## Basic summary of neuron 1
summary(CAL1V[["neuron 1"]])
## Enhanced summary giving a response window between 5 and 5.5s
summary(CAL1V[["neuron 1"]],c(5,5.5))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.