Does the function "extract(stanfit, permuted = TRUE)" permute all samples in the same way?


I found that the function extract(stanfit, permuted = TRUE) permute samples for each variable after the warm-up iterations. Are the samples for all the variables permuted in the same way? For example, let x <- c(1, 2, 3) and y <- c(1, 2, 3). If x is permuted to be c(3, 2, 1), will y become c(3, 2, 1) or have a different order?

They are the same.