View source: R/test_ordinal_dispersion.R
test_ordinal_dispersion | R Documentation |
test_ordinal_dispersion
performs the hypothesis test associated with the
ordinal dispersion for the block distance
test_ordinal_dispersion( series, states, true_dispersion, alpha = 0.05, temporal = TRUE, max_lag = 1 )
series |
An OTS (numerical vector with integers). |
states |
A numeric vector containing the corresponding states. |
true_dispersion |
The value for the true dispersion. |
alpha |
The significance level (default is 0.05). |
temporal |
Logical. If |
max_lag |
If |
If temporal = TRUE
(default), the function performs the hypothesis test based on the
ordinal dispersion relying on Theorem 7.1.1 in \insertCiteweiss2019distance;textualotsfeatures. Otherwise,
the test based on Theorem 4.1 in \insertCiteweiss2019distance;textualotsfeatures is carried out.
The results of the hypothesis test.
Ángel López-Oriona, José A. Vilar
weiss2019distanceotsfeatures
results_test <- test_ordinal_dispersion(AustrianWages$data[[100]], states = 0 : 5, true_dispersion = 2) # Performing the hypothesis test associated with the # ordinal dispersion for one OTS in dataset AustrianWages
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.