Learn R Programming

EffectsRelBaseline (version 0.5)

LL1WayAnova: Log-likelihood ratio statistic for grouped responses

Description

Computes the log-likelihood ratio statistic for a 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

LL1WayAnova(resp, groups)

Arguments

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

Value

log-likelihood ratio

References

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

See Also

fRatioStat,relBackgroundLL,sumSqCat

Examples

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

Run the code above in your browser using DataLab