Learn R Programming

PsumtSim (version 0.4)

compExclusionFraction: Compute fraction of cells with category selective response which are excluded by pre-testing.

Description

Computes fraction of simulated cells, with Poisson responses to background and varying rates to different categories, which will have an effect of category but be excluded by pre-testing.

Usage

compExclusionFraction(bkg, resps, numTrialsPerCat, pretestP, anovaP, showProgress = FALSE, numCells = 1000)

Arguments

bkg
Mean firing rate during a background interval, unrelated to stimulus presentation.
resps
Mean firing rates during a response period, one for each category.
numTrialsPerCat
Number of repetitions (presentation of stimuli) in each category.
pretestP
Significance level applied in pre-tests for effect of each category.
anovaP
Significance level applied in ANOVA for effect of category.
showProgress
TRUE if should list cell number as calculating. Default is FALSE.
numCells
Number of cells to simulate. Default is 1000.

Value

exclusionFrac
Fraction of cells which were not rejected by the first t-test; thus fraction of those ignored for the second test.
catSelectiveFrac
Fraction of all cells determined to have an effect of category on responses.
catSelExclFrac
Fraction of cells with a significant response to category which are excluded because they were not rejected by the first t-test.

References

Steinmetz, P.N. & Thorp, C.K. (2013) Testing for effects of different stimuli on neuronal firing relative to background activity. Journal of Neural Engineering, Sept. 2013.

Examples

Run this code
# This set of rates and alphas will exclude approximately 62% of neurons with 
# an effect of category on firing rates.
compExclusionFraction(10,c(10,9.5,10.5),5,
	pretestP=0.01,anovaP=0.05,showProgress=TRUE)

Run the code above in your browser using DataLab