test_ordinal_skewness {otsfeatures} | R Documentation |
test_ordinal_skewness
performs the hypothesis test associated with the
ordinal skewness for the block distance
test_ordinal_skewness(
series,
states,
true_skewness,
alpha = 0.05,
temporal = TRUE,
max_lag = 1
)
series |
An OTS (numerical vector with integers). |
states |
A numeric vector containing the corresponding states. |
true_skewness |
The value for the true skewness. |
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 skewness relying on Theorem 7.1.1 in Weiß (2019). Otherwise,
the test based on Theorem 4.1 in Weiß (2019) is carried out.
The results of the hypothesis test.
Ángel López-Oriona, José A. Vilar
Weiß CH (2019). “Distance-based analysis of ordinal data and ordinal time series.” Journal of the American Statistical Association.
results_test <- test_ordinal_skewness(AustrianWages$data[[100]],
states = 0 : 5, true_skewness = 2) # Performing the hypothesis test associated with the
# ordinal skewness for one OTS in dataset AustrianWages