Learn R Programming

PsumtSim (version 0.4)

simNormCatResp: Simulates normally distributed responses to stimuli.

Description

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

Usage

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.

See Also

simCatResp

Examples

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

Run the code above in your browser using DataLab