Description Usage Arguments Author(s) Examples
summary the result of oneway analysis
1 | summary.oneway(object, ...)
|
object |
the result of oneway analysis |
... |
other arguments |
Xueli Gao
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (object, ...)
{
MS_between = object[[3]]/object[[1]]
MS_within = object[[4]]/object[[2]]
F = MS_between/MS_within
Pr = 1 - pf(F, object[[2]], object[[1]], lower.tail = T)
result = data.frame(Df = c(object[[1]], object[[2]]), SS = c(object[[3]],
object[[4]]), MS = c(MS_between, MS_within), Fvalue = c(F,
NA), Pr = c(Pr, NA))
row.names(result) <- c("Between group", "Within group")
result
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.