Calculate acceptance rate of MCMC chain

count_accept(all_iters, resp)

Arguments

all_iters

the output object from estimate_thirt_params_mcmc function

resp

a data.frame of length [n_person x n_block] with at least three first variables: variable person of the format p for person number p, variable block of the format b for block number b, variable resp of the format r for response number r which corresponds to mupp::find_permutation_index().