Learn R Programming

opa (version 0.8.3)

correct_pairs: Return the number of pairs of observations matched by the hypothesis

Description

Return the number of pairs of observations matched by the hypothesis

Usage

correct_pairs(m)

Value

a non-negative integer

Arguments

m

an object of class "opafit"

Examples

Run this code
dat <- data.frame(t1 = c(9, 4, 8, 10),
                  t2 = c(8, 8, 12, 10),
                  t3 = c(8, 5, 10, 11))
h <- hypothesis(1:3)
opamod <- opa(dat, h)
correct_pairs(opamod)

Run the code above in your browser using DataLab