| runs_tests | R Documentation |
Functions for Runs Tests.
runs_above_and_below_threshold(v, threshold)
runs_above_and_below_median(v)
v |
A numeric vector. |
threshold |
A single numeric value. |
A two-element numeric vector containing the t-statistic and the p-value.
Boost Documentation for more details on the mathematical background.
# Runs Above and Below Threshold
runs_above_and_below_threshold(c(1, 2, 3, 4, 5), threshold = 3)
# Runs Above and Below Median
runs_above_and_below_median(c(1, 2, 3, 4, 5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.