View source: R/autocorrelation.R
max_auto_corr | R Documentation |
Compute the Maximum Autocorrelation
max_auto_corr(x, min_tau, max_tau)
x |
vector of distinct options of numbers or characters |
min_tau |
numeric indicating the smallest gap between subsequent numbers for which the autocorrelation will be computed |
max_tau |
numeric indicating the largest gap between subsequent numbers for which the autocorrelation will be computed |
This function takes a vector x
and uses it to compute the maximum autocorrelation
for a specified interval of gaps tau from min_tau
to max_tau
.
The resulting autocorrelation is the largest autocorrelation that could be observed
in the interval for values of tau
. A high autocorrelation
indicates that there there is a high correlation between numbers in a
sequence that are set apart from each other min_tau
to max_tau
values.
maximum autocorrelation of x
for the all gaps tau
in
the interval from min_tau
to max_tau
between subsequent numbers
max_auto_corr(c(1, 1, 1, 2, 2, 2, 1, 2, 1, 2, 2, 2), tau = 2)
max_auto_corr(c(1, 1, 1, 2, 2, 2, 1, 2, 1, 2, 2, 2), tau = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.