Skip to main content
. 2021 Feb 8;23(2):206. doi: 10.3390/e23020206
Algorithm 1 The MCMC method
Step 1: Choose the initial value (β(0),λ(0)).
Step 2: At stage i and for the given m, n and ATII-PH censored data, generate β(i) from the following:
Gamma(m+a, b+2i=1mxiλ+2i=1DRixiλ+2R*xmλ).
Step 3: Generate λ(i) from π2(λ(i1)|β(i),x) using the following steps.
Step 3-1: Generate λ from N(λ(i1),var(λ)).
Step 3-2: Generate the ω from the uniform distribution U(0, 1).
Step 3-3: Set λ(i)={λ,ifωrλ(i1),ifω>r, where r=min{1,π2(λ|β(i),x)π2(λ(i1)|β(i),x)}.
Step 4: Set i=i+1.
Step 5: By repeating Steps 2–4 N times, we get (β1,λ1),(β2,λ2),,(βN,λN). Furthermore, we compute H1,H2,,HN, where Hi=H(βi,λi), i=1,2,,N and H(β,λ) is the Shannon entropy of the GB distribution.