Skip to contents

Individual-level PCC and chance values.

Usage

individual_results(m, digits)

Arguments

m

an object of class "opafit" produced by opa()

digits

an integer

Value

a matrix containing a column of PCC values and a column of c-values with 1 row per row of data.

Details

If the opa model was fitted with no grouping variable, a matrix of PCCs and c-values are returned corresponding to the order of rows in the data. If the opa model was fitted with a grouping variable specified, a table of PCCs and c-values is returned ordered by factor level of the grouping variable.

Examples

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)
individual_results(opamod)
#>     PCC cval
#> 1  0.00 1.00
#> 2 66.67 0.52
#> 3 66.67 0.55
#> 4 66.67 0.35