summary.oneway: summary.oneway

Description Usage Arguments Author(s) Examples

View source: R/oneway.R

Description

summary the result of oneway analysis

Usage

1

Arguments

object

the result of oneway analysis

...

other arguments

Author(s)

Xueli Gao

Examples

 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
  }

xueligao/oneway documentation built on May 4, 2019, 1:26 p.m.