Learn R Programming

STAR (version 0.3-7)

print.repeatedTrain: Print and Summary Methods for repeatedTrain Objects

Description

Print and summary methods for repeatedTrain objects.

Usage

"print"(x,...) "summary"(object, responseWindow, acquisitionWindow,...) "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.

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.

Details

print.repeatedTrain calls plot.repeatedTrain

See Also

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

Examples

Run this code
## 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))

Run the code above in your browser using DataLab