compExclusionFraction: Compute fraction of cells with category selective response...

Description Usage Arguments Value Note Author(s) References Examples

View source: R/compExclusionFraction.R

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

1
2
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.

Note

The t-test which is performed for pre-selection is two-sided.

Author(s)

Peter N. Steinmetz <PeterNSteinmetz@steinmetz.org>

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

1
2
3
4
# 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)

PsumtSim documentation built on May 1, 2019, 8:03 p.m.