Title: | Bayesian Inference for the Birnbaum-Saunders Distribution |
---|---|
Description: | Developed for the following tasks. 1- Simulating and computing the maximum likelihood estimator for the Birnbaum-Saunders (BS) distribution, 2- Computing the Bayesian estimator for the parameters of the BS distribution based on reference prior proposed by Xu and Tang (2010) <doi:10.1016/j.csda.2009.08.004> and conjugate prior. 3- Computing the Bayesian estimator for the BS distribution based on conjugate prior. 4- Computing the Bayesian estimator for the BS distribution based on Jeffrey prior given by Achcar (1993) <doi:10.1016/0167-9473(93)90170-X> 5- Computing the Bayesian estimator for the BS distribution under progressive type-II censoring scheme. |
Authors: | Mahdi Teimouri |
Maintainer: | Mahdi Teimouri <[email protected]> |
License: | GPL (>= 2) |
Version: | 1.1.1 |
Built: | 2025-02-20 02:58:07 UTC |
Source: | https://github.com/cran/bibs |
The mineral density of three dominant and nondominant of bones measured in johnson1999.
data(bone)
data(bone)
A text file with 6 columns.
R. A. ArnoldJohnson and D. W. Wichern 1999. Applied Multivariate Analysis, Prentice-Hall, New Jersey.
data(bone)
data(bone)
Computing the Bayesian estimators of the BS distribution using conjugate prior, that is, conjugate and reference priors. The probability density function of generalized inverse Gaussian (GIG) distribution is given by good1953population
where ,
,
, and
are parameters of this family. The pdf of a inverse gamma (IG) distribution denoted as
is given by
where ,
, and
are the shape and scale parameters, respectively.
conjugatebs(x,gamma0=1,theta0=1,lambda0=0.001,chi0=0.001,psi0=0.001,CI=0.95,M0=800,M=1000)
conjugatebs(x,gamma0=1,theta0=1,lambda0=0.001,chi0=0.001,psi0=0.001,CI=0.95,M0=800,M=1000)
x |
Vector of observations. |
gamma0 |
The first hyperparameter of the IG conjugate prior. |
theta0 |
The second hyperparameter of the IG conjugate prior. |
lambda0 |
The first hyperparameter of the GIG conjugate prior. |
chi0 |
The second hyperparameter of the GIG conjugate prior. |
psi0 |
The third hyperparameter of the GIG conjugate prior. |
CI |
Confidence level for constructing percentile and asymptotic confidence intervals. That is 0.95 by default. |
M0 |
The number of sampler runs considered as burn-in. |
M |
The number of total sampler runs. |
A list including summary statistics of a Gibbs sampler for Bayesian inference including point estimation for the parameter, its standard error, and the corresponding credible interval, goodness-of-fit measures, asymptotic
confidence interval (CI) and corresponding standard errors, and Fisher information matix.
Mahdi Teimouri
I. J. Good 1953. The population frequencies of species and the estimation of population parameters. Biometrika, 40(3-4):237-264.
data(fatigue) x <- fatigue conjugatebs(x,gamma0=1,theta0=1,lambda0=0.001,chi0=0.001,psi0=0.001,CI=0.95,M0=800,M=1000)
data(fatigue) x <- fatigue conjugatebs(x,gamma0=1,theta0=1,lambda0=0.001,chi0=0.001,psi0=0.001,CI=0.95,M0=800,M=1000)
A set of 101 observations obtained by Birnbaum and Saunders(1969) from fatigue life of 6061-T6 aluminum coupons cut parallel to the direction of rolling and oscillated at 18 cycles per second (cps).
data(fatigue)
data(fatigue)
A text file with 1 column.
Z. W. Birnbaum and S. C. Saunders 1969. Estimation for a family of life distributions with applications to fatigue. Journal of Applied Probability, 328-347.
data(fatigue)
data(fatigue)
Computing the Bayesian estimators of the BS distribution based on approximated Jeffreys prior proposed by Achcar (1993). The approximated Jeffreys piors is
.
Jeffreysbs(x, CI = 0.95, M0 = 800, M = 1000)
Jeffreysbs(x, CI = 0.95, M0 = 800, M = 1000)
x |
Vector of observations. |
CI |
Confidence level for constructing percentile and asymptotic confidence intervals. That is 0.95 by default. |
M0 |
The number of sampler runs considered as burn-in. |
M |
The number of total sampler runs. |
A list including summary statistics of a Gibbs sampler for the Bayesian inference including point estimation for the parameter, its standard error, and the corresponding credible interval, goodness-of-fit measures, asymptotic
confidence interval (CI) and corresponding standard errors, and Fisher information matix.
Mahdi Teimouri
J. A. Achcar 1993. Inferences for the Birnbaum-Saunders fatigue life model using Bayesian methods, Computational Statistics \& Data Analysis, 15 (4), 367-380.
data(fatigue) x <- fatigue Jeffreysbs(x, CI = 0.95, M0 = 800, M = 1000)
data(fatigue) x <- fatigue Jeffreysbs(x, CI = 0.95, M0 = 800, M = 1000)
Computing the ML estimator for the GBS distribution proposed by Owen (2006) whose density function is given by
where . The parameters of GBS distribution are
,
, and
. For
, the GBS distribution turns into the ordinary Birnbaum-Saunders distribution.
mlebs(x, start, method = "Nelder-Mead", CI = 0.95)
mlebs(x, start, method = "Nelder-Mead", CI = 0.95)
x |
Vector of observations. |
start |
Vector of the initial values. |
method |
The method for the numerically optimization that includes one of |
CI |
Confidence level for constructing asymptotic confidence intervals. That is 0.95 by default. |
A list including the ML estimator, goodness-of-fit measures, asymptotic confidence interval (CI) and corresponding standard errors, and Fisher information matix.
Mahdi Teimouri
data(fatigue) x <- fatigue mlebs(x, start = c(1, 29), method = "Nelder-Mead", CI = 0.95)
data(fatigue) x <- fatigue mlebs(x, start = c(1, 29), method = "Nelder-Mead", CI = 0.95)
The plasma survival data contains the Survival times of plasma cell myeloma for 112 patients, see Carbone et al. (1967).
data(plasma)
data(plasma)
A text file with 4 columns.
P. P. Carbone, L. E. Kellerhouse, and E. A. Gehan 1967. Plasmacytic myeloma: A study of the relationship of survival to various clinical manifestations and anomalous protein type in 112 patients. The American Journal of Medicine, 42 (6), 937-48.
data(plasma)
data(plasma)
Simulating from BS distribution whose density function is given by
where >0. The parameters of GBS distribution are
>0 and
>0.
rbs(n, alpha, beta)
rbs(n, alpha, beta)
n |
Size of required realizations. |
alpha |
Parameter |
beta |
Parameter |
A vector of realizations from distribution.
Mahdi Teimouri
rbs(n = 100, alpha = 1, beta = 2)
rbs(n = 100, alpha = 1, beta = 2)
Computing the Bayesian estimators of the BS distribution using reference prior proposed by Berger and Bernardo(1989). The joint distribution of the priors is
.
referencebs(x, CI = 0.95, M0 = 800, M = 1000)
referencebs(x, CI = 0.95, M0 = 800, M = 1000)
x |
Vector of observations. |
CI |
Confidence level for constructing percentile and asymptotic confidence intervals. That is 0.95 by default. |
M0 |
The number of sampler runs considered as burn-in. |
M |
The number of total sampler runs. |
A list including summary statistics of a Gibbs sampler for Bayesian inference including point estimation for the parameter, its standard error, and the corresponding credible interval, goodness-of-fit measures, asymptotic
confidence interval (CI) and corresponding standard errors, and Fisher information matix.
Mahdi Teimouri
J. O. Berger and J. M. Bernardo 1989. Estimating a product of means: Bayesian analysis with reference priors. Journal of the American Statistical Association, 84(405), 200-207.
data(fatigue) x <- fatigue referencebs(x, CI = 0.95, M0 = 800, M = 1000)
data(fatigue) x <- fatigue referencebs(x, CI = 0.95, M0 = 800, M = 1000)
Estimates parameters of the Birnbaum-Saunders family in a Bayesian framework through the Metropolis-Hasting algorithm when subjects are placed on progressive type-II censoring scheme with likelihood function
in which is cumulative distribution function of the Birnbaum-Saunders family with
. The acceptance for each new sample of
and
, respectively, becomes
,
typeIIbs(plan, M0 = 4000, M = 6000, CI = 0.95)
typeIIbs(plan, M0 = 4000, M = 6000, CI = 0.95)
plan |
Censoring plan for progressive type-II censoring scheme. It must be given as a |
M0 |
The number of sampler runs considered as burn-in. |
M |
The number of total sampler runs. |
CI |
Confidence or coverage level for constructing percentile confidence interval. That is 0.95 by default. |
A list including summary statistics after burn-in point including: mean, median, standard deviation, 100(1 - CI
)/2 percentile, 100(1/2 + CI
/2) percentile.
Mahdi Teimouri
M. Teimouri and S. Nadarajah 2016. Bias corrected MLEs under progressive type-II censoring scheme, Journal of Statistical Computation and Simulation, 86 (14), 2714-2726.
N. Balakrishnan and R. Aggarwala 2000. Progressive Censoring: Theory, Methods, and Applications. Springer Science Business Media, New York.
data(plasma) typeIIbs(plan = plasma, M0 = 100, M = 200, CI = 0.95)
data(plasma) typeIIbs(plan = plasma, M0 = 100, M = 200, CI = 0.95)
It contains a welcome message for user of package bibs.
Welcome message for user of bibs package.