sumSqCat {EffectsRelBaseline}R Documentation

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

Details

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

Value

weighted sum of squared deviations of group means from background

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

See Also

fRatioStat,relBackgroundLL,LL1WayAnova

Examples

  data(ef)
  sumSqCat(ef$absResp,ef$race,mean(ef$absBkg))

[Package EffectsRelBaseline version 0.5 Index]