Description Usage Arguments Value Note Author(s) References Examples
View source: R/compExclusionFraction.R
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.
1 2 | compExclusionFraction(bkg, resps, numTrialsPerCat, pretestP, anovaP, showProgress = FALSE,
numCells = 1000)
|
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. |
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. |
The t-test which is performed for pre-selection is two-sided.
Peter N. Steinmetz <PeterNSteinmetz@steinmetz.org>
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.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.