fitbayesWeibull | R Documentation |
Suppose x=(x_1,\dots,x_n)^T
denotes a vector of n
independent observations coming from a three-parameter Weibull distribution. Using the methodology given in Green et al. (1994), we compute the Bayes' estimators of the shape, scale, and location parameters.
fitbayesWeibull(data, n.burn=8000, n.simul=10000)
data |
Vector of observations. |
n.burn |
Length of the burn-in period, i.e., the point after which Gibbs sampler is supposed to attain convergence. By default |
n.simul |
Total numbers of Gibbas sampler iterations. By default |
The Bayes' estimators are obtained by averaging on the all iterations between n.burn
and n.simul
.
A list of objects in two parts as
Bayes' estimators of the parameters.
A sequence of four goodness-of-fit measures consist of Anderson-Darling (AD
), Cramer-von Mises (CVM
), Kolmogorov-Smirnov (KS
), and log-likelihood (log-likelihood
) statistics.
The methodology used here for computing the Bayes' estimator of the location parameter is different from that used by Green et al. (1994). This means that the location parameter is allowed to be any real value.
Mahdi Teimouri
E. J. Green, F. A. R. Jr, A. F. M. Smith, and W. E. Strawderman, 1994. Bayesian estimation for the three-parameter Weibull distribution with tree diameter data, Biometrics, 50(1), 254-269.
n<-100
alpha<-2
beta<-2
theta<-3
data<-rweibull(n,shape=alpha,scale=beta)+theta
fitbayesWeibull(data, n.burn=4000, n.simul=5000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.