powered by
Thins the output from an MCMC process
thin(x, k)
A vector, matrix or data.frame containing output from an MCMC sampling scheme
An integer. This function takes every kth element from x
A thinned vector, matrix or data frame containing every kth element of x.
Note this function does not check to see if k is sensible.
# NOT RUN { ## A blockwise Metropolis-Hastings chain of 1000 elements, thinned to ## 5th element ## MCMCSampleBW = bivnormMH(0.9, type = 'block') MCMCSampleBW = thin(MCMCSampleBW, 5) # }
Run the code above in your browser using DataLab