
eweibull(x, method = "mle")
NA
), undefined (NaN
), and
infinite (Inf
, -Inf
) values are allowed but will be removed."mle"
(maximum likelihood; the default), "mme"
(methods of moments),
and "mmue"
(method of moments based on the unbiased estimator of"estimate"
containing the estimated parameters and other
information. See estimate.object
for details.x
contains any missing (NA
), undefined (NaN
) or
infinite (Inf
, -Inf
) values, they will be removed prior to
performing the estimation.
Let $\underline{x} = (x_1, x_2, \ldots, x_n)$ be a vector of
$n$ observations from an Weibull distribution with
parameters shape=
$\alpha$ and scale=
$\beta$.
Estimation
Maximum Likelihood Estimation (method="mle"
)
The maximum likelihood estimators (mle's) of $\alpha$ and $\beta$ are
the solutions of the simultaneous equations (Forbes et al., 2011):
method="mme"
)
The method of moments estimator (mme) of $\alpha$ is computed by solving the
equation:
method="mmue"
)
The method of moments estimators based on the unbiased estimator of variance are
exactly the same as the method of moments estimators given in equations (3-6) above,
except that the method of moments estimator of variance in equation (6) is replaced
with the unbiased estimator of variance:
estimate.object
.# Generate 20 observations from a Weibull distribution with parameters
# shape=2 and scale=3, then estimate the parameters via maximum likelihood.
# (Note: the call to set.seed simply allows you to reproduce this example.)
set.seed(250)
dat <- rweibull(20, shape = 2, scale = 3)
eweibull(dat)
#Results of Distribution Parameter Estimation
#--------------------------------------------
#
#Assumed Distribution: Weibull
#
#Estimated Parameter(s): shape = 2.673098
# scale = 3.047762
#
#Estimation Method: mle
#
#Data: dat
#
#Sample Size: 20
#----------
# Use the same data as in previous example, and compute the method of
# moments estimators based on the unbiased estimator of variance:
eweibull(dat, method = "mmue")
#Results of Distribution Parameter Estimation
#--------------------------------------------
#
#Assumed Distribution: Weibull
#
#Estimated Parameter(s): shape = 2.528377
# scale = 3.052507
#
#Estimation Method: mmue
#
#Data: dat
#
#Sample Size: 20
#----------
# Clean up
#---------
rm(dat)
Run the code above in your browser using DataLab