Learn R Programming

EffectsRelBaseline (version 0.5)

sumSqCat: Weighted sum of squared deviations by category, SSC, statistic.

Description

Compute the weighted sum of squared deviations of the group or category response means from the average background.

Usage

sumSqCat(resp, groups, backMean)

Arguments

resp
response values
groups
grouping variables (will be treated as factors)
backMean
mean of background values

Value

weighted sum of squared deviations of group means from background

Details

The SSC statistic is the primary test statistic developed for the changes from background test (CBT) developed in Steinmetz & Thorp (2013).

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, in review.

See Also

fRatioStat,relBackgroundLL,LL1WayAnova

Examples

Run this code
  data(ef)
  sumSqCat(ef$absResp,ef$race,mean(ef$absBkg))

Run the code above in your browser using DataLab