Learn R Programming

opa (version 0.8.3)

summary.opaGroupComparison: Prints a summary of results from hypothesis comparison.

Description

Prints a summary of results from hypothesis comparison.

Usage

# S3 method for opaGroupComparison
summary(object, ...)

Value

No return value, called for side effects.

Arguments

object

an object of class "opaHypothesisComparison".

...

ignored

Examples

Run this code
dat <- data.frame(group = c("a", "b", "a", "b"),
                  t1 = c(9, 4, 8, 10),
                  t2 = c(8, 8, 12, 10),
                  t3 = c(8, 5, 10, 11))
dat$group <- factor(dat$group, levels = c("a", "b"))
h <- hypothesis(1:3)
opamod <- opa(dat[,2:4], h, group = dat$group)
z <- compare_groups(opamod, "a", "b")
summary(z)

Run the code above in your browser using DataLab