View source: R/turning_point_index.R
tp_index | R Documentation |
Turning Point Index
tp_index(x)
x |
vector of distinct options of numbers or characters |
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.
Turning Point Index of x
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")}
tp_index(ginsburg1994)
tp_index(evans1978[, 1])
tp_index(evans1978[, 2])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.