Computes the cumulative joint probabilities of an ordinal time series
Computes the cumulative joint probabilities of an ordinal time series
c_joint_probabilities returns a matrix with the cumulative joint probabilities of an ordinal time series
UTF-8
c_joint_probabilities(series, lag =1, states)
Arguments
series: An OTS.
lag: The considered lag (default is 1).
states: A numerical vector containing the corresponding states.
Returns
A matrix with the jcumulative oint probabilities.
Details
Given an OTS of length T with range S={s0,s1,s2,…,sn} (s0<s1<s2<…<sn), Xt={X1,…,XT}, the function computes the matrix F(l)=(fi−1j−1(l))1≤i,j≤n, with fij(l)=T−lNij(l), where Nij(l) is the number of pairs (Xt,Xt−l) in the realization Xt
such that Xt≤si and Xt−l≤sj.
Examples
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