fitgrouped1 {ForestFit} | R Documentation |
Estimating parameters of the three-parameter Birnbaum-saunders (BS), generalized exponential (GE), and Weibull distributions fitted to grouped data
Description
Suppose a sample of independent observations each follows a three-parameter BS, GE, or Weibull distributions have been divided into
separate groups of the form
, for
. So, the likelihood function is given by
where the is the lower bound of the first group,
is the upper bound of the last group, and
is the frequency of observations within
-th group provided that
. The cdf of a three-parameter BS, GE, and Weibull distributions are given by
and
where .
Usage
fitgrouped1(r, f, family, method1, starts, method2)
Arguments
r |
A numeric vector of length |
f |
A numeric vector of length |
family |
Can be either |
method1 |
A character string determining the method of estimation. It can be one of |
""aml"
(for method of approximated maximum likelihood (aml)),
""em"
(for method of expectation maximization (em)), and
""ml"
(for method of maximum likelihood (ml)).
starts |
A numeric vector of the initial values for the shape, scale, and location parameters, respectively. |
method2 |
The method for optimizing the log-likelihood function. It invovles one of |
Details
If the method is "em"
, then the initial values ("starts"
) and the log-likelihood optimizing method ("method2"
) are ignored.
Value
A two-part list of objects given by the following:
Estimated parameters of the three-parameter GE, Birnbaum-Saunders, or Weibull distribution fitted to the gropued data.
A sequence of goodness-of-fit measures consist of Akaike Information Criterion (
AIC
), Consistent Akaike Information Criterion (CAIC
), Bayesian Information Criterion (BIC
), Hannan-Quinn information criterion (HQIC
), Anderson-Darling (AD
), Chi-square (Chi-square
), Cram\'eer-von Misses (CVM
), Kolmogorov-Smirnov (KS
), and log-likelihood (log-likelihood
) statistics.
Author(s)
Mahdi Teimouri
References
G. J. McLachlan and T. Krishnan, 2007. The EM Algorithm and Extensions, John Wiley & Sons.
A. P. Dempster, N. M. Laird, and D. B. Rubin, 1977. Maximum likelihood from incomplete data via the EM algorithm, Journal of the Royal Statistical Society, Series B (methodological), 1-38.
M. Teimouri and A. K. Gupta, 2012. Estimation Methods for the Gompertz–Makeham Distribution Under Progressively Type-I Interval Censoring Scheme, National Academy Science Letters, 35(3).
Examples
r<-c(0,1,2,3,4,10)
f<-c(2,8,12,15,4)
starts<-c(2,2,0)
fitgrouped1(r,f,"birnbaum-saunders","em")
fitgrouped1(r,f,"weibull","ml",starts,"CG")
fitgrouped1(r,f,"ge","em")