View source: R/c_joint_probabilities.R
c_joint_probabilities | R Documentation |
c_joint_probabilities
returns a matrix with the cumulative joint
probabilities of an ordinal time series
c_joint_probabilities(series, lag = 1, states)
series |
An OTS. |
lag |
The considered lag (default is 1). |
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 matrix \widehat{\boldsymbol F}(l) = \big(\widehat{f}_{i-1j-1}(l)\big)_{1 ≤ i, j ≤ n}, with \widehat{f}_{ij}(l)=\frac{N_{ij}(l)}{T-l}, where N_{ij}(l) is the number of pairs (\overline{X}_t, \overline{X}_{t-l}) in the realization \overline{X}_t such that \overline{X}_t ≤ s_i and \overline{X}_{t-l} ≤ s_j.
A matrix with the jcumulative oint probabilities.
Ángel López-Oriona, José A. Vilar
weiss2019distanceotsfeatures
matrix_cjp <- c_joint_probabilities(series = AustrianWages$data[[100]], states = 0 : 5) # Computing the matrix of # cumulative joint 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.