poissonTestOdoursSF: Carry out Poisson test on absolute number of spikes in odour...

Description Usage Arguments Details See Also Examples

View source: R/spikes.R

Description

Carry out Poisson test on absolute number of spikes in odour response

Usage

1
poissonTestOdoursSF(x, odours = colnames(x), maxtrials = NA, ...)

Arguments

x

An m x n odour response matrix for m trials of n odours

odours

Names of odours (defaults to colnames(x))

maxtrials

Maximum number of trials to consider (default => all)

...

Additional parameters passed to poisson.test

Details

It is assumed that each odour column is matched to the blank column that most recently preceded it

See Also

poisson.test, OdourResponseFromSpikes

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# calculate summary response for cell 100 for window of 700-1700 ms
spikeresp=OdourResponseFromSpikes(Spikes[[100]][[1]], responseWindow=c(700,1700))
poissonTestOdoursSF(spikeresp, alternative="greater")

## Not run: 
spikerespall=sapply(Spikes, function(x) OdourResponseFromSpikes(x[[1]],
  responseWindow=c(700,1700)), simplify = F)
# significant response (either up or down)
spikes.pval=sapply(spikerespall, poissonTestOdoursSF, simplify = F)

## End(Not run)

sfrechter/physplit.analysis documentation built on May 29, 2019, 8:02 p.m.