sumSqCat {EffectsRelBaseline} | R Documentation |
Compute the weighted sum of squared deviations of the group or category response means from the average background.
sumSqCat(resp, groups, backMean)
resp |
response values |
groups |
grouping variables (will be treated as factors) |
backMean |
mean of background values |
The SSC statistic is the primary test statistic developed for the changes from background test (CBT) developed in Steinmetz & Thorp (2013).
weighted sum of squared deviations of group means from background
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, in review.
fRatioStat,relBackgroundLL,LL1WayAnova
data(ef) sumSqCat(ef$absResp,ef$race,mean(ef$absBkg))