Learn R Programming

EffectsRelBaseline (version 0.5)

fRatioStat: F-ratio statistic for grouped responses

Description

Computes the F-ratio statistic for a log-likelihood ratio test of the null hypothesis that the responses are all drawn from one group, rather than the alternative hypothesis that each group has a separate mean.

Usage

fRatioStat(resp, groups)

Arguments

resp
response values
groups
grouping variables (will be treated as factors)

Value

F-ratio statistic

References

B. Lindgren, Statistical Theory, 4th Ed. (1993), section 14.7.

See Also

LL1WayAnova,relBackgroundLL,sumSqCat

Examples

Run this code
data(ef)
fRatioStat(ef$absResp,ef$race)

Run the code above in your browser using DataLab