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

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

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

Usage

1
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

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

Example output

[1] 399.4759

EffectsRelBaseline documentation built on May 2, 2019, 9:44 a.m.