This function gives estimators using several methods if necessary. The
goal is to find the rates rate1
, rate2
and the mixing
probability prob1
with the 'feasibility' constraints 0 <
rate1
< rate2
and 0 < prob1 < 1
.
First the method of moments is used. If the estimates are feasible
they are returned with method
=
"moments"
. If
not, the estimates are derived using two linear regressions. A
regression without constant using only the smallest values gives an
estimator of the mean rate. A regression using only the largest
values gives rate1
and prob1
. Yet the constraints must
be fulfilled. If they are, the estimates are returned (together with
method =
"Hreg"
suggesting a cumulative hazard
regression). If not, a (poor) default estimate is returned with
method =
"arbitrary"
.