simNormCatResp: Simulates normally distributed responses to stimuli.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/simNormCatResp.R

Description

Simulates a set of normally distributed responses to stimuli grouped into categories and corresponding background counts unrelated to stimulation.

Usage

1
simNormCatResp(bkgRate, respRates, numRespsPerCat)

Arguments

bkgRate

Mean firing rate during a background interval, unrelated to stimulus presentation.

respRates

Mean firing rates during a response period, one for each category.

numRespsPerCat

Number of repetitions (presentation of stimuli) in each category.

Value

Dataframe with columns for category label, background, and response counts for each trial.

Author(s)

Peter N. Steinmetz <PeterNSteinmetz@steinmetz.org>

See Also

simCatResp

Examples

1
2
simNormCatResp(10.0,c(10,20,30),5)->sim2
anova(glm(resp~category,data=sim2),test='F')

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