A slice sampler for the latent lengths r
slice_rcpp(X1, X2, theta, beta1, beta2, n, r)
A model matrix for component I.
A model matrix for component II.
A vector with the circular dependent variable.
A matrix containing the coefficients of component I for the current iteration.
A matrix containing the coefficients of component II for the current iteration.
An integer indicating the sample size of the data.
A matrix with the estimates of r of the previous iteration.