goftype2: Computing goodness-of-fit (GOF) measures under progressive...

Description Usage Arguments Author(s) References Examples

Description

The goodness-of-fit (GOF) measures consist of Anderson-Darling (AD), Cramer-von Misses (CVM), and log-likelihood statistics for progressive type-II censoring scheme.

Usage

1
goftype2(plan, param, mle, cdf, pdf)

Arguments

plan

Censoring plan for progressive type-II censoring scheme. It must be given as a data.frame that includes number of failed items X, and vector of removed items R.

param

Vector of the of the family parameter's names.

mle

Vector of the maximum likelihood estimators.

cdf

Expression for the cumulative distribution function.

pdf

Expression for the probability density function.

Author(s)

Mahdi Teimouri

References

R. Pakyari and N. Balakrishnan 2012. A general purpose approximate goodness-of-fit for progressively Type-II censored data, IEEE Transaction on Reliability, 61, 238-244.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
     n <- 20
     R <- c(5, rep(0, n-6) )
 param <- c("alpha","beta")
   mle <- c(2,6)
   pdf <- quote( alpha/beta*(x/beta)^(alpha-1)*exp( -(x/beta)^alpha ) )
   cdf <- quote( 1-exp( -(x/beta)^alpha ) )
    lb <- 0
    ub <- Inf
  plan <- rtype2(n = n, R = R, param = param, mle = mle, cdf = cdf, lb = lb, ub = ub)
goftype2(plan = plan, param = param, mle = mle, cdf = cdf, pdf = pdf)

bccp documentation built on May 18, 2021, 9:07 a.m.

Related to goftype2 in bccp...