Skip to contents

Prints a summary of results from a fitted ordinal pattern analysis model.

Usage

# S3 method for opafit
summary(object, ..., digits = 2L)

Arguments

object

an object of class "opafit".

...

ignored

digits

an integer used for rounding values in the output.

Value

No return value, called for side effects.

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)
summary(opamod)
#> Ordinal Pattern Analysis of 3 observations for 4 individuals in 1 group 
#> 
#> Between subjects results:
#>        PCC  cval
#> pooled  50 0.269
#> 
#> Within subjects results:
#>     PCC cval
#> 1  0.00 1.00
#> 2 66.67 0.50
#> 3 66.67 0.51
#> 4 66.67 0.34
#> 
#> PCCs were calculated for pairwise ordinal relationships using a difference threshold of 0.
#> Chance-values were calculated from 1000 random orderings.
summary(opamod, digits = 3)
#> Ordinal Pattern Analysis of 3 observations for 4 individuals in 1 group 
#> 
#> Between subjects results:
#>        PCC  cval
#> pooled  50 0.269
#> 
#> Within subjects results:
#>      PCC  cval
#> 1  0.000 1.000
#> 2 66.667 0.498
#> 3 66.667 0.511
#> 4 66.667 0.338
#> 
#> PCCs were calculated for pairwise ordinal relationships using a difference threshold of 0.
#> Chance-values were calculated from 1000 random orderings.