mcmc_upp
returns the samples from the posterior of xi1, for fitting the discrete power law to the data x. The samples are obtained using Markov chain Monte Carlo (MCMC).
mcmc_upp(
x,
u,
xi1,
a_xi1,
b_xi1,
N = 20000L,
thin = 10L,
burnin = 20000L,
print_freq = 10000L
)
A data frame containing N rows and 2 columns which represent xi1 and the log-posterior density (lpost)
Vector of positive integers, representing the data
Scalar, non-negative integer threshold
Scalar, initial value of the shape parameter
Scalar, lower bound of the uniform distribution as the prior of xi1
Scalar, upper bound of the uniform distribution as the prior of xi1
Scalar, positive integer representing the length of the output chain i.e. the number of rows in the returned data frame
Scalar, positive integer representing the thinning in the MCMC
Scalar, non-negative integer representing the burn-in of the MCMC
Scalar, positive integer representing the frequency of printing the sampled values
In the MCMC, a componentwise Metropolis-Hastings algorithm is used. Unlike mcmc_mix
, the threshold u is treated as fixed in mcmc_upp
.
mcmc_mix
for MCMC for the discrete extreme value mixture distribution.