View source: R/c_marginal_probabilities.R
c_marginal_probabilities | R Documentation |
c_marginal_probabilities
returns a vector with the cumulative marginal
probabilities of an ordinal time series
c_marginal_probabilities(series, states)
series |
An OTS (numerical vector with integers). |
states |
A numerical vector containing the corresponding states. |
Given an OTS of length T with range \mathcal{S}=\{s_0, s_1, s_2, …, s_n\} (s_0 < s_1 < s_2 < … < s_n), \overline{X}_t=\{\overline{X}_1,…, \overline{X}_T\}, the function computes the vector \widehat{\boldsymbol f} =(\widehat{f}_0, …, \widehat{f}_n), with \widehat{f}_i=\frac{N_i}{T}, where N_i is the number of elements less than or equal to s_i in the realization \overline{X}_t.
A vector with the cumulative marginal probabilities.
Ángel López-Oriona, José A. Vilar
weiss2019distanceotsfeatures
vector_cmp <- c_marginal_probabilities(series = AustrianWages$data[[100]], states = 0 : 5) # Computing the vector of # cumulative marginal probabilities for one series in dataset AustrianWages
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.