tp_index: Turning Point Index

View source: R/turning_point_index.R

tp_indexR Documentation

Turning Point Index

Description

Turning Point Index

Usage

tp_index(x)

Arguments

x

vector of distinct options of numbers or characters

Details

This function takes a vector x and computes all turning points in the given sequence. Turning points are defined as values in the given sequence where the preceding and succeeding value are both either higher or lower than the current value. The number of observed turning points is weighted against the theoretically expected number of turning points given the length of the sequence. The resulting quotient is multiplied with 100. Scores over 100 indicate a higher number of turning points than theoretically expected; Scores below 100 indicate fewer turning points than theoretically expected.

Value

Turning Point Index of x

References

Towse, J.N., Neil, D. Analyzing human random generation behavior: A review of methods used and a computer program for describing performance. Behavior Research Methods, Instruments, & Computers 30, 583–591 (1998). \Sexpr[results=rd]{tools:::Rd_expr_doi("doi:10.3758/BF03209475")}

Examples

tp_index(ginsburg1994)
tp_index(evans1978[, 1])
tp_index(evans1978[, 2])


TImA97/randfindR documentation built on July 1, 2024, 7:56 p.m.