Skip to main content
. 2021 Nov 23;23(12):1558. doi: 10.3390/e23121558
Algorithm 3: Generating adaptive type II progressive censored data from EHL(λ,σ).
  • 1.

    Generate a Type II progressive censored sample from an exponentiated half-logistic distribution EHL(λ,σ) with initial values of (R1,R2,,Rm) and T,n,m:

    • (a)

      generate independent random variables U1,U2,,Um from the uniform distribution U(0,1).

    • (b)

      Let Vi=Ui1i+j=mi+1mRi, i=1,2,,m.

    • (c)

      Let Wi=1VmVm1Vmi+1, i=1,2,,m.

    • (d)

      For certain σ and λ, let Xi=F1(Wi). Then, X=(X1,X2,,Xm) is the Type II progressive censored sample from EHL(λ,σ).

  • 2.

    Confirm the value of J, and abandon the sample XJ+2,,Xm.

  • 3.

    Generate the first mJ1 order statistics from a truncated distribution f(x)[1F(xJ+1)] with sample size n(i=1JRi+J+1) as XJ+2,XJ+3,,Xm.