This vignette introduces the functions available for censored data, then describes parametric estimation for censored normal, lognormal, gamma, and Poisson samples. The method notes cover parameter estimation and confidence intervals when some observations are known only to lie above or below a censoring level.
Related vignettes:
For censored-data diagnostics, see plotting positions and goodness-of-fit tests. For nonparametric estimation, see estimation with censored samples.
Help topic: FcnsByCatCensoredData.
Data Transformations
| Function Name | Description |
boxcoxCensored
|
Compute values of an objective for Box-Cox Power |
| transformations, or compute optimal transformation, | |
| for Type I censored data. | |
print.boxcoxCensored
|
Print an object of class
“boxcoxCensored”.
|
plot.boxcoxCensored
|
Plot an object of class
“boxcoxCensored”.
|
Estimating Distribution Parameters
| Function Name | Description |
egammaCensored
|
Estimate shape and scale parameters for a gamma distribution |
| based on Type I censored data. | |
egammaAltCensored
|
Estimate mean and CV for a gamma distribution |
| based on Type I censored data. | |
elnormCensored
|
Estimate parameters for a lognormal distribution (log-scale) |
| based on Type I censored data. | |
elnormAltCensored
|
Estimate parameters for a lognormal distribution (original scale) |
| based on Type I censored data. | |
enormCensored
|
Estimate parameters for a Normal distribution based on Type I |
| censored data. | |
epoisCensored
|
Estimate parameter for a Poisson distribution based on Type I |
| censored data. | |
enparCensored
|
Estimate the mean and standard deviation nonparametrically. |
gpqCiNormSinglyCensored
|
Generate the generalized pivotal quantity used to construct a |
| confidence interval for the mean of a Normal distribution based | |
| on Type I singly censored data. | |
gpqCiNormMultiplyCensored
|
Generate the generalized pivotal quantity used to construct a |
| confidence interval for the mean of a Normal distribution based | |
| on Type I multiply censored data. | |
print.estimateCensored
|
Print an object of class
“estimateCensored”.
|
Estimating Distribution Quantiles
| Function Name | Description |
eqlnormCensored
|
Estimate quantiles of a Lognormal distribution (log-scale)
|
| based on Type I censored data, and optionally construct | |
| a confidence interval for a quantile. | |
eqnormCensored
|
Estimate quantiles of a Normal distribution
|
| based on Type I censored data, and optionally construct | |
| a confidence interval for a quantile. |
All of the functions for computing quantiles (and associated
confidence intervals) for complete (uncensored) data are listed in the
help file Estimating
Distribution Quantiles. All of these functions, with the exception
of eqnpar,
will accept an object of class "estimateCensored".
Thus, you may estimate quantiles (and construct approximate
confidence intervals) for any distribution for which:
Nonparametric estimates of quantiles (and associated confidence
intervals) can be constructed from censored data as long as the order
statistics used in the results are above all left-censored observations
or below all right-censored observations. See the help file for eqnpar
for more information and examples.
Goodness-of-Fit Tests
| Function Name | Description |
gofTestCensored
|
Perform a goodness-of-fit test based on Type I left- or |
| right-censored data. | |
print.gofCensored
|
Print an object of class
“gofCensored”.
|
plot.gofCensored
|
Plot an object of class
“gofCensored”.
|
Hypothesis Tests
| Function Name | Description |
twoSampleLinearRankTestCensored
|
Perform two-sample linear rank tests based on |
| censored data. | |
print.htestCensored
|
Printing method for object of class |
“htestCensored”.
|
Plotting Probability Distributions
| Function Name | Description |
cdfCompareCensored
|
Plot two cumulative distribution functions based on Type I |
| censored data. | |
ecdfPlotCensored
|
Plot an empirical cumulative distribution function based on |
| Type I censored data. | |
ppointsCensored
|
Compute plotting positions for Type I censored data. |
qqPlotCensored
|
Produce quantile-quantile (Q-Q) plots, also called probability |
| plots, based on Type I censored data. |
Prediction and Tolerance Intervals
| Function Name | Description |
gpqTolIntNormSinglyCensored
|
Generate the generalized pivotal quantity used to construct a |
| tolerance interval for a Normal distribution based | |
| on Type I singly censored data. | |
gpqTolIntNormMultiplyCensored
|
Generate the generalized pivotal quantity used to construct a |
| tolerance interval for a Normal distribution based | |
| on Type I multiply censored data. | |
tolIntLnormCensored
|
Tolerance interval for a lognormal distribution (log-scale) |
| based on Type I censored data. | |
tolIntNormCensored
|
Tolerance interval for a Normal distribution based on Type I |
| censored data. |
All of the functions for computing prediction and tolerance intervals
for complete (uncensored) data are listed in the help files Prediction
Intervals and Tolerance
Intervals. All of these functions, with the exceptions of predIntNpar
and tolIntNpar,
will accept an object of class "estimateCensored".
Thus, you may construct approximate prediction or tolerance
intervals for any distribution for which:
Nonparametric prediction and tolerance intervals can be constructed
from censored data as long as the order statistics used in the results
are above all left-censored observations or below all right-censored
observations. See the help files for predIntNpar,
predIntNparSimultaneous,
and tolIntNpar
for more information and examples.
Help topic: enormCensored.
If x or censored contain any missing
(NA), undefined (NaN) or infinite
(Inf, -Inf) values, they will be removed prior
to performing the estimation.
Let denote a vector of observations from a normal distribution with mean and standard deviation . Assume () of these observations are known and () of these observations are all censored below (left-censored) or all censored above (right-censored) at fixed censoring levels
For the case when , the data are said to be Type I multiply censored. For the case when , set . If the data are left-censored and all known observations are greater than or equal to , or if the data are right-censored and all known observations are less than or equal to , then the data are said to be Type I singly censored (Nelson, 1982, p.7), otherwise they are considered to be Type I multiply censored.
Let denote the number of observations censored below or above censoring level for , so that
Let denote the “ordered” observations, where now “observation” means either the actual observation (for uncensored observations) or the censoring level (for censored observations). For right-censored data, if a censored observation has the same value as an uncensored one, the uncensored observation should be placed first. For left-censored data, if a censored observation has the same value as an uncensored one, the censored observation should be placed first.
Note that in this case the quantity does not necessarily represent the ’th “largest” observation from the (unknown) complete sample.
Finally, let (omega) denote the set of subscripts in the “ordered” sample that correspond to uncensored observations.
ESTIMATION
Estimation Methods for Multiply and Singly Censored
Data
The following methods are available for multiply and singly censored
data.
Maximum Likelihood Estimation
(method="mle")
For Type I left censored data, the likelihood function is given by:
where and denote the probability density function (pdf) and cumulative distribution function (cdf) of the population. That is,
where and denote the pdf and cdf of the standard normal distribution, respectively (Cohen, 1963; 1991, pp.6, 50). For left singly censored data, Equation (3) simplifies to:
Similarly, for Type I right censored data, the likelihood function is given by:
and for right singly censored data this simplifies to:
The maximum likelihood estimators are computed by maximizing the likelihood function. For right-censored data, Cohen (1963; 1991, pp.50-51) shows that taking partial derivatives of the log-likelihood function with respect to and and setting these to 0 produces the following two simultaneous equations:
where
Note that the quantity defined in Equation (11) is simply the mean of the uncensored observations, the quantity defined in Equation (12) is simply the method of moments estimator of variance based on the uncensored observations, and the function defined in Equation (15) is the hazard function for the standard normal distribution.
For left-censored data, Equations (9) and (10) stay the same, except is replaced with .
The function enormCensored computes the maximum
likelihood estimators by solving Equations (9) and (10) and uses the
quantile-quantile regression estimators (see below) as initial
values.
Regression on Order Statistics (method="ROS")
or
Quantile-Quantile Regression
(method="qq.reg")
This method is sometimes called the probability plot method
(Nelson, 1982, Chapter 3; Gilbert, 1987, pp.134-136; Helsel and Hirsch,
1992, p. 361), and more recently also called parametric regression
on order statistics or ROS (USEPA, 2009; Helsel, 2012). In
the case of no censoring, it is well known (e.g., Nelson, 1982, p.113;
Cleveland, 1993, p.31) that for the standard normal (Gaussian)
quantile-quantile plot (i.e., the plot of the sorted observations
(empirical quantiles) versus standard normal quantiles; see qqPlot),
the intercept and slope of the fitted least-squares line estimate the
mean and standard deviation, respectively. Specifically, the estimates
of
and
are found by computing the least-squares estimates in the following
model:
where
denotes the plotting position associated with the ’th largest value, is a constant such that (the plotting position constant), and denotes the cumulative distribution function (cdf) of the standard normal distribution. The default value of is 0.375 (see below).
This method can be adapted to the case of left (right) singly censored data as follows. Plot the uncensored observations against the largest (smallest) normal quantiles, where the normal quantiles are computed based on a sample size of , fit the least-squares line to this plot, and estimate the mean and standard deviation from the intercept and slope, respectively. That is, use Equations (16) and (17), but for right singly censored data use , and for left singly censored data use .
The argument plot.pos.con (see the ...
arguments in the enormCensored
help page) determines the value of the plotting positions computed
in Equation (18). The default value is plot.pos.con=0.375.
See the section on qqPlot for
more information.
This method is discussed by Haas and Scheff (1990). In the context of lognormal data, Travis and Land (1990) suggest exponentiating the predicted 50’th percentile from this fit to estimate the geometric mean (i.e., the median of the lognormal distribution).
This method is easily extended to multiply censored data. Equation (16) becomes
where
denotes the set of
subscripts associated with the uncensored observations in the ordered
sample. The plotting positions are computed by calling the EnvStats
function ppointsCensored.
The argument prob.method determines the method of computing
the plotting positions (default is
prob.method="hirsch-stedinger"), and the argument
plot.pos.con determines the plotting position constant
(default is plot.pos.con=0.375). (See the ...
arguments in the enormCensored
help page.) Both Helsel (2012) and USEPA (2009) also use the
Hirsch-Stedinger probability method but set the plotting position
constant to 0.
Robust Regression on Order Statistics
(method="rROS") or
Imputation Using Quantile-Quantile Regression
(method="impute.w.qq.reg")
This is the robust Regression on Order Statistics (rROS) method
discussed in USEPA (2009) and Helsel (2012). It involves using the
quantile-quantile regression method (method="qq.reg" or
method="ROS") to fit a regression line (and thus initially
estimate the mean and standard deviation), and then imputing the values
of the censored observations by predicting them from the regression
equation. The final estimates of the mean and standard deviation are
then computed using the usual formulas (see enorm)
based on the observed and imputed values.
The imputed values are computed as:
See the section on ppointsCensored
for information on how the plotting positions for the censored
observations are computed.
The argument prob.method determines the method of
computing the plotting positions (default is
prob.method="hirsch-stedinger"), and the argument
plot.pos.con determines the plotting position constant
(default is plot.pos.con=0.375). (See the ...
arguments in the enormCensored
help page.) Both Helsel (2012) and USEPA (2009) also use the
Hirsch-Stedinger probability method but set the plotting position
constant to 0.
The arguments lb.impute and ub.impute
determine the lower and upper bounds for the imputed values. Imputed
values smaller than lb.impute are set to this value.
Imputed values larger than ub.impute are set to this value.
The default values are lb.impute=-Inf and
ub.impute=Inf. See the ... arguments in the enormCensored
help page.
For singly censored data, this is the NR method of Gilliom and Helsel (1986, p. 137). In the context of lognormal data, this method is discussed by Hashimoto and Trussell (1983), Gilliom and Helsel (1986), and El-Shaarawi (1989), and is referred to as the LR or Log-Probability Method.
For multiply censored data, this method was developed in the context
of lognormal data by Helsel and Cohn (1988) using the formulas for
plotting positions given in Hirsch and Stedinger (1987) and Weibull
plotting positions (i.e., prob.method="hirsch-stedinger"
and plot.pos.con=0).
Setting Censored Observations to Half the Censoring Level
(method="half.cen.level")
This method is applicable only to left censored data that is bounded
below by 0. This method involves simply replacing all the censored
observations with half their detection limit, and then computing the
mean and standard deviation with the usual formulas (see enorm).
This method is included only to allow comparison of this method to other methods. Setting left-censored observations to half the censoring level is not recommended.
For singly censored data, this method is discussed by Gleit (1985), Haas and Scheff (1990), and El-Shaarawi and Esterby (1992). El-Shaarawi and Esterby (1992) show that these estimators are biased and inconsistent (i.e., the bias remains even as the sample size increases).
For multiply censored data, this method was studied by Helsel and Cohn (1988).
Estimation Methods for Singly Censored
Data
The following methods are available only for singly censored data.
Bias-Corrected Maximum Likelihood Estimation
(method="bcmle")
The maximum likelihood estimates of
and
are biased. The bias tends to 0 as the sample size increases, but it can
be considerable for small sample sizes, especially in the case of a
large percentage of censored observations (Saw, 1961b). Schmee et
al. (1985) note that bias and variances of the mle’s are of the order
(see for example, Bain and Engelhardt, 1991), and that for 90% censoring
the bias is negligible if
is at least 100. (For less intense censoring, even fewer observations
are needed.)
The exact bias of each estimator is extremely difficult to compute. Saw (1961b), however, derived the first-order term (i.e., the term of order ) in the bias of the mle’s of and and proposed bias-corrected mle’s. His bias-corrected estimators were derived for the case of Type II singly censored data. Schneider (1986, p.110) and Haas and Scheff (1990), however, state that this bias correction should reduce the bias of the estimators in the case of Type I censoring as well.
Based on the tables of bias-correction terms given in Saw (1961b), Schneider (1986, pp.107-110) performed a least-squares fit to produce the following computational formulas for right-censored data:
For left-censored data, Equation (22) becomes:
Quantile-Quantile Regression Including the Censoring Level
(method="qq.reg.w.cen.level")
This is a modification of the quantile-quantile regression method and
was proposed by El-Shaarawi (1989) in the context of lognormal data.
El-Shaarawi’s idea is to include the censoring level and an associated
plotting position, along with the uncensored observations and their
associated plotting positions, in order to include information about the
value of the censoring level
.
For left singly censored data, the modification involves adding the point to the plot before fitting the least-squares line. For right singly censored data, the point is added to the plot before fitting the least-squares line.
El-Shaarawi (1989) also proposed replacing the estimated normal quantiles with the exact expected values of normal order statistics, and using the values in their variance-covariance matrix to perform a weighted least least-squared regression. These last two modifications are not incorporated here.
Imputation Using Quantile-Quantile Regression Including the
Censoring Level
(method ="impute.w.qq.reg.w.cen.level")
This is exactly the same method as imputation using quantile-quantile
regression
(method="impute.w.qq.reg"), except that the
quantile-quantile regression including the censoring level method
(method="qq.reg.w.cen.level") is used to fit the regression
line. In the context of lognormal data, this method is discussed by
El-Shaarawi (1989), which he denotes as the Modified LR Method.
Imputation Using Maximum Likelihood
(method ="impute.w.mle")
This is exactly the same method as imputation with quantile-quantile
regression
(method="impute.w.qq.reg"), except that the maximum
likelihood method (method="mle") is used to compute the
initial estimates of the mean and standard deviation. In the context of
lognormal data, this method is discussed by El-Shaarawi (1989), which he
denotes as the Modified Maximum Likelihood Method.
Iterative Imputation Using Quantile-Quantile Regression
(method="iterative.impute.w.qq.reg")
This method is similar to the imputation with quantile-quantile
regression method
(method="impute.w.qq.reg"), but iterates until the
estimates of the mean and standard deviation converge. The algorithm
is:
"impute.w.qq.reg" method. (Actually, any suitable
estimates will do.)enorm).tol and
convergence; see the ... arguments in the enormCensored
help page).This method is discussed by Gleit (1985), which he denotes as “Fill-In with Expected Values”.
M-Estimators (method="m.est")
This method was contributed by Leo R. Korn (Korn and Tyler, 2001). This
method finds location and scale estimates that are consistent at the
normal model and robust to deviations from the normal model, including
both outliers on the right and outliers on the left above and below the
limit of detection. The estimates are found by solving the simultaneous
equations:
where
and and denote the probability density function (pdf) and cumulative distribution function (cdf) of Student’s t-distribution with degrees of freedom.
This results in an M-estimating equation based on the t-density function (Korn and Tyler., 2001). Since the t-density has heavier tails than the normal density, this M-estimator will tend to down-weight values that are far away from the center of the data. When censoring is present, neither the location nor the scale estimates are consistent at the normal model. A computational correction is performed that converts the above M-estimator to another M-estimator that is consistent at the normal model, even under censoring.
The degrees of freedom parameter
is set by the argument t.df and may be viewed as a tuning
parameter that will determine the robustness and efficiency properties.
When t.df is large, the estimator is similar to the usual
mle and the output will then be very close to that when
method="mle". As t.df decreases, the
efficiency will decline and the outlier rejection property will increase
in strength. Choosing t.df=3 (the default) provides a good
combination of efficiency and robustness. A reasonable strategy is to
transform the data so that they are approximately symmetric (often the
log transformation for environmental data is appropriate) and then apply
the M-estimator using t.df=3.
CONFIDENCE INTERVALS
This section explains how confidence intervals for the mean
are computed.
Likelihood Profile
(ci.method="profile.likelihood")
This method was proposed by Cox (1970, p.88), and Venzon and Moolgavkar
(1988) introduced an efficient method of computation. This method is
also discussed by Stryhn and Christensen (2003) and Royston (2007). The
idea behind this method is to invert the likelihood-ratio test to obtain
a confidence interval for the mean
while treating the standard deviation
as a nuisance parameter. Equation (3) above shows the form of the
likelihood function
for multiply left-censored data, and Equation (7) shows the function for
multiply right-censored data.
Following Stryhn and Christensen (2003), denote the maximum likelihood estimates of the mean and standard deviation by . The likelihood ratio test statistic () of the hypothesis (where is a fixed value) equals the drop in between the “full” model and the reduced model with fixed at , i.e.,
where is the maximum likelihood estimate of for the reduced model (i.e., when ). Under the null hypothesis, the test statistic follows a chi-squared distribution with 1 degree of freedom.
Alternatively, we may express the test statistic in terms of the profile likelihood function for the mean , which is obtained from the usual likelihood function by maximizing over the parameter , i.e.,
Then we have
A two-sided confidence interval for the mean consists of all values of for which the test is not significant at level :
where denotes the ’th quantile of the chi-squared distribution with degrees of freedom. One-sided lower and one-sided upper confidence intervals are computed in a similar fashion, except that the quantity in Equation (33) is replaced with .
Normal Approximation
(ci.method="normal.approx")
This method constructs approximate
confidence intervals for
based on the assumption that the estimator of
is approximately normally distributed. That is, a two-sided
confidence interval for
is constructed as:
where denotes the estimate of , denotes the estimated asymptotic standard deviation of the estimator of , denotes the assumed sample size for the confidence interval, and denotes the ’th quantile of Student’s t-distribuiton with degrees of freedom. One-sided confidence intervals are computed in a similar fashion.
The argument ci.sample.size determines the value of
(see the ... arguments in the enormCensored
help page). When method equals "mle" or
"bcmle", the default value is the expected number of
uncensored observations, otherwise it is the observed number of
uncensored observations. This is simply an ad-hoc method of constructing
confidence intervals and is not based on any published theoretical
results.
When pivot.statistic="z", the
’th
quantile from the standard
normal distribution is used in place of the
’th
quantile from Student’s t-distribution.
Approximate Confidence Interval Based on Maximum Likelihood
Estimators
When method="mle", the standard deviation of the mle of
is estimated based on the inverse of the Fisher Information matrix. The
estimated variance-covariance matrix for the estimates of
and
are based on the observed information matrix, formulas for which are
given in Cohen (1991).
Approximate Confidence Interval Based on Bias-Corrected Maximum
Likelihood Estimators
When method="bcmle" (available only for singly censored
data), the same procedures are used to construct the confidence interval
as for method="mle". The true variance of the
bias-corrected mle of
is necessarily larger than the variance of the mle of
(although the differences in the variances goes to 0 as the sample size
gets large). Hence this method of constructing a confidence interval
leads to intervals that are too short for small sample sizes, but these
intervals should be better centered about the true value of
.
Approximate Confidence Interval Based on Other
Estimators
When method is some value other than "mle", the standard
deviation of the estimated mean is approximated by
where, as already noted, denotes the assumed sample size. This is simply an ad-hoc method of constructing confidence intervals and is not based on any published theoretical results.
Normal Approximation Using Covariance
(ci.method="normal.approx.w.cov") This method is only
available for singly censored data and only applicable when
method="mle" or method="bcmle". It was
proposed by Schneider (1986, pp. 191-193) for the case of Type II
censoring, but is applicable to any situation where the estimated mean
and standard deviation are consistent estimators and are correlated. In
particular, the mle’s of
and
are correlated under Type I censoring as well.
Schneider’s idea is to determine two positive quantities such that
so that
is a confidence interval for .
For cases where the estimators of and are independent (e.g., complete samples), it is well known that setting
yields an exact confidence interval and setting
where denotes the ’th quantile of the standard normal distribution yields an approximate confidence interval that is asymptotically correct.
For the general case, Schneider (1986) considers the random variable
and provides formulas for and .
Note that the resulting confidence interval for the mean is not symmetric about the estimated mean. Also note that the quantity is a random variable for Type I censoring, while Schneider (1986) assumed it to be fixed since he derived the result for Type II censoring (in which case ).
Bootstrap and Bias-Corrected Bootstrap
Approximation (ci.method="bootstrap")
The bootstrap is a nonparametric method of estimating the distribution
(and associated distribution parameters and quantiles) of a sample
statistic, regardless of the distribution of the population from which
the sample was drawn. The bootstrap was introduced by Efron (1979) and a
general reference is Efron and Tibshirani (1993).
In the context of deriving an approximate confidence interval for the population mean , the bootstrap can be broken down into the following steps:
enormCensored, the
number of bootstraps
is determined by the argument n.bootstraps (see the
arguments in the enormCensored
help page). The default value of n.bootstraps is
1000.ecdfPlot),
and then create a confidence interval for
based on this estimated cdf.The two-sided percentile interval (Efron and Tibshirani, 1993, p.170) is computed as:
where denotes the empirical cdf evaluated at and thus denotes the ’th empirical quantile, that is, the ’th quantile associated with the empirical cdf. Similarly, a one-sided lower confidence interval is computed as:
and a one-sided upper confidence interval is computed as:
The function enormCensored calls the R function quantile
to compute the empirical quantiles used in Equations (42)-(44).
The percentile method bootstrap confidence interval is only first-order accurate (Efron and Tibshirani, 1993, pp.187-188), meaning that the probability that the confidence interval will contain the true value of can be off by , where is some constant. Efron and Tibshirani (1993, pp.184-188) proposed a bias-corrected and accelerated interval that is second-order accurate, meaning that the probability that the confidence interval will contain the true value of may be off by instead of . The two-sided bias-corrected and accelerated confidence interval is computed as:
where
where the quantity denotes the estimate of using all the values in except the ’th one, and
A one-sided lower confidence interval is given by:
and a one-sided upper confidence interval is given by:
where and are computed as for a two-sided confidence interval, except is replaced with in Equations (46) and (47).
The constant incorporates the bias correction, and the constant is the acceleration constant. The term “acceleration” refers to the rate of change of the standard error of the estimate of with respect to the true value of (Efron and Tibshirani, 1993, p.186). For a normal (Gaussian) distribution, the standard error of the estimate of does not depend on the value of , hence the acceleration constant is not really necessary.
When ci.method="bootstrap", the function
enormCensored computes both the percentile method and
bias-corrected and accelerated method bootstrap confidence
intervals.
This method of constructing confidence intervals for censored data was studied by Shumway et al. (1989).
Generalized Pivotal Quantity
(ci.method="gpq")
This method was introduced by Schmee et al. (1985) and is discussed by
Krishnamoorthy and Mathew (2009). The idea is essentially to use a
parametric bootstrap to estimate the correct pivotal quantities
and
in Equation (38) above. For singly censored data, these quantities are
computed as follows:
c observations to be censored.method argument, and
denote these estimates as
.nmc times to produce an empirical
distribution of the t-like pivotal quantity.The function enormCensored calls the function gpqCiNormSinglyCensored
to generate the distribution of pivotal quantities in the case of singly
censored data. A two-sided
confidence interval for
is then computed as:
where
denotes the
’th
empirical quantile of the nmc generated
values.
Schmee at al. (1985) derived this method in the context of Type II singly censored data (for which these limits are exact within Monte Carlo error), but state that according to Regal (1982) this method produces confidence intervals that are close apporximations to the correct limits for Type I censored data.
For multiply censored data, this method has been extended as follows. The algorithm stays the same, except that Step 2 becomes:
The function enormCensored calls the function gpqCiNormMultiplyCensored
to generate the distribution of pivotal quantities in the case of
multiply censored data.
Help topic: elnormAltCensored.
If x or censored contain any missing
(NA), undefined (NaN) or infinite
(Inf, -Inf) values, they will be removed prior
to performing the estimation.
Let
be a vector of
observations from a lognormal
distribution with parameters
mean=
and
cv=.
Let
denote the standard deviation of this distribution, so that
.
Set
.
Then
is a vector of observations from a normal distribution with parameters
mean=
and
sd=.
See the help file for LognormalAlt
for the relationship between
,
and
.
Let
denote a vector of
observations from a lognormal
distribution with parameters
mean=
and
cv=.
Let
denote the standard deviation of this distribution, so that
.
Set
.
Then
is a vector of observations from a normal distribution with parameters
mean=
and
sd=.
See the help file for LognormalAlt
for the relationship between
,
and
.
Assume () of the observations are known and () of the observations are all censored below (left-censored) or all censored above (right-censored) at fixed censoring levels
For the case when , the data are said to be Type I multiply censored. For the case when , set . If the data are left-censored and all known observations are greater than or equal to , or if the data are right-censored and all known observations are less than or equal to , then the data are said to be Type I singly censored (Nelson, 1982, p.7), otherwise they are considered to be Type I multiply censored.
Let denote the number of observations censored below or above censoring level for , so that
Let denote the “ordered” observations, where now “observation” means either the actual observation (for uncensored observations) or the censoring level (for censored observations). For right-censored data, if a censored observation has the same value as an uncensored one, the uncensored observation should be placed first. For left-censored data, if a censored observation has the same value as an uncensored one, the censored observation should be placed first.
Note that in this case the quantity does not necessarily represent the ’th “largest” observation from the (unknown) complete sample.
Finally, let (omega) denote the set of subscripts in the “ordered” sample that correspond to uncensored observations.
ESTIMATION
This section explains how each of the estimators of
mean=
and
cv=
are computed. The approach is to first compute estimates of
and
(the mean and variance of the lognormal distribution), say
and
,
then compute the estimate of the cv
by
.
Maximum Likelihood Estimation
(method="mle")
The maximum likelihood estimators of
,
,
and
are computed as:
where
and
denote the maximum likelihood estimators of
and
.
See the help for for enormCensored
for information on how
and
are computed.
Quasi Minimum Variance Unbiased Estimation Based on the
MLE’s (method="qmvue")
The maximum likelihood estimators of
and
are biased. Even for complete (uncensored) samples these estimators are
biased (see equation (12) in the section on elnormAlt).
The bias tends to 0 as the sample size increases, but it can be
considerable for small sample sizes. (Cohn et al., 1989, demonstrate the
bias for complete data sets.) For the case of complete samples, the
minimum variance unbiased estimators (mvue’s) of
and
were derived by Finney (1941) and are discussed in Gilbert (1987,
pp.164-167) and Cohn et al. (1989). These estimators are computed
as:
where
(see the section on elnormAlt).
For Type I censored samples, the quasi minimum variance unbiased
estimators (qmvue’s) of
and
are computed using equations (6) and (7) and estimating
and
with their mle’s (see elnormCensored).
For singly censored data, this is apparently the LM method of Gilliom
and Helsel (1986, p.137) (it is not clear from their description on page
137 whether their LM method is the straight method="mle"
described above or method="qmvue" described here). This
method was also used by Newman et al. (1989, p.915, equations
10-11).
For multiply censored data, this is apparently the MM method of
Helsel and Cohn (1988, p.1998). (It is not clear from their description
on page 1998 and the description in Gilliom and Helsel, 1986, page 137
whether Helsel and Cohn’s (1988) MM method is the straight
method="mle" described above or method="qmvue"
described here.)
Bias-Corrected Maximum Likelihood Estimation
(method="bcmle")
This method was derived by El-Shaarawi (1989) and can be applied to
complete or censored data sets. For complete data, the exact relative
bias of the mle of the mean
is given as:
(see equation (12) in the section on elnormAlt).
For the case of complete or censored data, El-Shaarawi (1989) proposed the following “bias-corrected” maximum likelihood estimator:
where
and
denotes the asymptotic variance-covariance of the mle’s of
and
,
which is based on the observed information matrix, formulas for which
are given in Cohen (1991). El-Shaarawi (1989) does not propose a
bias-corrected estimator of the variance
,
so the mle of
is computed when method="bcmle".
Robust Regression on Order Statistics
(method="rROS") or
Imputation Using Quantile-Quantile Regression
(method ="impute.w.qq.reg")
This is the robust Regression on Order Statistics (rROS) method
discussed in USEPA (2009) and Helsel (2012). This method involves using
quantile-quantile regression on the log-transformed observations to fit
a regression line (and thus initially estimate the mean
and standard deviation
in log-space), imputing the log-transformed values of the
censored observations by predicting them from the regression equation,
transforming the log-scale imputed values back to the original scale,
and then computing the method of moments estimates of the mean and
standard deviation based on the observed and imputed values.
The steps are:
Estimate and by computing the least-squares estimates in the following model:
where
denotes the plotting position associated with the
’th
largest value,
is a constant such that
(the default value is 0.375),
denotes the cumulative distribution function (cdf) of the standard
normal distribution and
denotes the set of
subscripts associated with the uncensored observations in the ordered
sample. The plotting positions are computed by calling the function ppointsCensored.
Compute the log-scale imputed values as:
Retransform the log-scale imputed values:
Compute the usual method of moments estimates of the mean and variance.
Note that the estimate of variance is actually the usual unbiased one (not the method of moments one) in the case of complete data.
For sinlgy censored data, this method is discussed by Hashimoto and Trussell (1983), Gilliom and Helsel (1986), and El-Shaarawi (1989), and is referred to as the LR (Log-Regression) or Log-Probability Method.
For multiply censored data, this is the MR method of Helsel and Cohn
(1988, p.1998). They used it with the probability method of Hirsch and
Stedinger (1987) and Weibull plotting positions (i.e.,
prob.method="hirsch-stedinger" and
plot.pos.con=0).
The argument plot.pos.con (see the ...
arguments in the elnormAltCensored
help page) determines the value of the plotting positions computed
in equations (14) and (15) when method equals
"hirsch-stedinger" or "michael-schucany". The
default value is plot.pos.con=0.375. See the section on ppointsCensored
for more information.
The arguments lb.impute and ub.impute (see
the ... arguments in the elnormAltCensored
help page) determine the lower and upper bounds for the imputed
values. Imputed values smaller than lb.impute are set to
this value. Imputed values larger than ub.impute are set to
this value. The default values are lb.impute=0 and
ub.impute=Inf.
Imputation Using Quantile-Quantile Regression Including the
Censoring Level
(method ="impute.w.qq.reg.w.cen.level")
This method is only available for sinlgy censored data.
This method was proposed by El-Shaarawi (1989), which he denoted as the
Modified LR Method. It is exactly the same method as imputation using
quantile-quantile regression (method="impute.w.qq.reg"),
except that the quantile-quantile regression includes the censoring
level. For left singly censored data, the modification involves adding
the point
to the plot before fitting the least-squares line. For right singly
censored data, the point
is added to the plot before fitting the least-squares line.
Imputation Using Maximum Likelihood
(method ="impute.w.mle")
This method is only available for sinlgy censored data.
This is exactly the same method as robust Regression on Order Statistics
(i.e., the same as using method="rROS" ormethod="impute.w.qq.reg"), except that the maximum
likelihood method (method="mle") is used to compute the
initial estimates of the mean and standard deviation. In the context of
lognormal data, this method is discussed by El-Shaarawi (1989), which he
denotes as the Modified Maximum Likelihood Method.
Setting Censored Observations to Half the Censoring Level
(method="half.cen.level")
This method is applicable only to left censored data that is bounded
below by 0. This method involves simply replacing all the censored
observations with half their detection limit, and then computing the
usual moment estimators of the mean and variance. That is, all censored
observations are imputed to be half the detection limit, and then
Equations (17) and (18) are used to estimate the mean and varaince.
This method is included only to allow comparison of this method to other methods. Setting left-censored observations to half the censoring level is not recommended. In particular, El-Shaarawi and Esterby (1992) show that these estimators are biased and inconsistent (i.e., the bias remains even as the sample size increases).
CONFIDENCE INTERVALS
This section explains how confidence intervals for the mean
are computed. f
Likelihood Profile
(ci.method="profile.likelihood")
This method was proposed by Cox (1970, p.88), and Venzon and Moolgavkar
(1988) introduced an efficient method of computation. This method is
also discussed by Stryhn and Christensen (2003) and Royston (2007). The
idea behind this method is to invert the likelihood-ratio test to obtain
a confidence interval for the mean
while treating the coefficient of variation
as a nuisance parameter.
For Type I left censored data, the likelihood function is given by:
where and denote the probability density function (pdf) and cumulative distribution function (cdf) of the population. That is,
where
and and denote the pdf and cdf of the standard normal distribution, respectively (Cohen, 1963; 1991, pp.6, 50). For left singly censored data, equation (3) simplifies to:
Similarly, for Type I right censored data, the likelihood function is given by:
and for right singly censored data this simplifies to:
Following Stryhn and Christensen (2003), denote the maximum likelihood estimates of the mean and coefficient of variation by . The likelihood ratio test statistic () of the hypothesis (where is a fixed value) equals the drop in between the “full” model and the reduced model with fixed at , i.e.,
where is the maximum likelihood estimate of for the reduced model (i.e., when ). Under the null hypothesis, the test statistic follows a chi-squared distribution with 1 degree of freedom.
Alternatively, we may express the test statistic in terms of the profile likelihood function for the mean , which is obtained from the usual likelihood function by maximizing over the parameter , i.e.,
Then we have
A two-sided confidence interval for the mean consists of all values of for which the test is not significant at level :
where denotes the ’th quantile of the chi-squared distribution with degrees of freedom. One-sided lower and one-sided upper confidence intervals are computed in a similar fashion, except that the quantity in Equation (30) is replaced with .
Direct Normal Approximations
(ci.method="delta" or
ci.method="normal.approx")
An approximate
confidence interval for
can be constructed assuming the distribution of the estimator of
is approximately normally distributed. That is, a two-sided
confidence interval for
is constructed as:
where denotes the estimate of , denotes the estimated asymptotic standard deviation of the estimator of , denotes the assumed sample size for the confidence interval, and denotes the ’th quantile of Student’s t-distribuiton with degrees of freedom. One-sided confidence intervals are computed in a similar fashion.
The argument ci.sample.size determines the value of
(see the ... arguments in the elnormAltCensored
help page). When method equals "mle",
"qmvue", or "bcmle" and the data are singly
censored, the default value is the expected number of uncensored
observations, otherwise it is
,
the observed number of uncensored observations. This is simply an ad-hoc
method of constructing confidence intervals and is not based on any
published theoretical results.
When pivot.statistic="z", the
’th
quantile from the standard
normal distribution is used in place of the
’th
quantile from Student’s t-distribution.
Direct Normal Approximation Based on the Delta Method
(ci.method="delta")
This method is usually applied with the maximum likelihood estimators
(method="mle"). It should also work approximately for the
quasi minimum variance unbiased estimators (method="qmvue")
and the bias-corrected maximum likelihood estimators
(method="bcmle").
When method="mle", the variance of the mle of
can be estimated based on the variance-covariance matrix of the mle’s of
and
(denoted
),
and the delta method:
where
(Shumway et al., 1989). The variance-covariance matrix of the mle’s of and is estimated based on the inverse of the observed Fisher Information matrix, formulas for which are given in Cohen (1991).
Direct Normal Approximation Based on the Moment Estimators
(ci.method="normal.approx")
This method is valid only for the moment estimators based on imputed
values
(i.e., method="impute.w.qq.reg" or
method="half.cen.level"). For these cases, the standard
deviation of the estimated mean is assumed to be approximated by
where, as already noted, denotes the assumed sample size. This is simply an ad-hoc method of constructing confidence intervals and is not based on any published theoretical results.
Cox’s Method (ci.method="cox")
This method may be applied with the maximum likelihood estimators
(method="mle"), the quasi minimum variance unbiased
estimators (method="qmvue"), and the bias-corrected maximum
likelihood estimators (method="bcmle").
This method was proposed by El-Shaarawi (1989) and is an extension of
the method derived by Cox and presented in Land (1972) for the case of
complete data (see the explanation of ci.method="cox" in
the section on elnormAlt).
The idea is to construct an approximate
confidence interval for the quantity
assuming the estimate of
is approximately normally distributed, and then exponentiate the confidence limits. That is, a two-sided confidence interval for is constructed as:
where
and denotes the estimated asymptotic standard deviation of the estimator of , denotes the assumed sample size for the confidence interval, and denotes the ’th quantile of Student’s t-distribuiton with degrees of freedom.
El-Shaarawi (1989) shows that the standard deviation of the mle of can be estimated by:
where denotes the variance-covariance matrix of the mle’s of and and is estimated based on the inverse of the Fisher Information matrix.
One-sided confidence intervals are computed in a similar fashion.
Bootstrap and Bias-Corrected Bootstrap
Approximation (ci.method="bootstrap")
The bootstrap is a nonparametric method of estimating the distribution
(and associated distribution parameters and quantiles) of a sample
statistic, regardless of the distribution of the population from which
the sample was drawn. The bootstrap was introduced by Efron (1979) and a
general reference is Efron and Tibshirani (1993).
In the context of deriving an approximate confidence interval for the population mean , the bootstrap can be broken down into the following steps:
n.bootstraps (see the
arguments in the elnormAltCensored
help page). The default value of n.bootstraps is
1000.ecdfPlot),
and then create a confidence interval for
based on this estimated cdf.The two-sided percentile interval (Efron and Tibshirani, 1993, p.170) is computed as:
where denotes the empirical cdf evaluated at and thus denotes the ’th empirical quantile, that is, the ’th quantile associated with the empirical cdf. Similarly, a one-sided lower confidence interval is computed as:
and a one-sided upper confidence interval is computed as:
The function elnormAltCensored calls the R function quantile
to compute the empirical quantiles used in Equations (42)-(44).
The percentile method bootstrap confidence interval is only first-order accurate (Efron and Tibshirani, 1993, pp.187-188), meaning that the probability that the confidence interval will contain the true value of can be off by , where is some constant. Efron and Tibshirani (1993, pp.184-188) proposed a bias-corrected and accelerated interval that is second-order accurate, meaning that the probability that the confidence interval will contain the true value of may be off by instead of . The two-sided bias-corrected and accelerated confidence interval is computed as:
where
where the quantity denotes the estimate of using all the values in except the ’th one, and
A one-sided lower confidence interval is given by:
and a one-sided upper confidence interval is given by:
where and are computed as for a two-sided confidence interval, except is replaced with in Equations (51) and (52).
The constant incorporates the bias correction, and the constant is the acceleration constant. The term “acceleration” refers to the rate of change of the standard error of the estimate of with respect to the true value of (Efron and Tibshirani, 1993, p.186). For a normal (Gaussian) distribution, the standard error of the estimate of does not depend on the value of , hence the acceleration constant is not really necessary.
When ci.method="bootstrap", the function
elnormAltCensored computes both the percentile method and
bias-corrected and accelerated method bootstrap confidence
intervals.
This method of constructing confidence intervals for censored data was studied by Shumway et al. (1989).
Help topic: egammaCensored.
If x or censored contain any missing
(NA), undefined (NaN) or infinite
(Inf, -Inf) values, they will be removed prior
to performing the estimation.
Let
denote a vector of
observations from a gamma
distribution with parameters
shape=
and
scale=.
The relationship between these parameters and the mean
and coefficient of variation
of this distribution is given by:
Assume () of these observations are known and () of these observations are all censored below (left-censored) or all censored above (right-censored) at fixed censoring levels
For the case when , the data are said to be Type I multiply censored. For the case when , set . If the data are left-censored and all known observations are greater than or equal to , or if the data are right-censored and all known observations are less than or equal to , then the data are said to be Type I singly censored (Nelson, 1982, p.7), otherwise they are considered to be Type I multiply censored.
Let denote the number of observations censored below or above censoring level for , so that
Let denote the “ordered” observations, where now “observation” means either the actual observation (for uncensored observations) or the censoring level (for censored observations). For right-censored data, if a censored observation has the same value as an uncensored one, the uncensored observation should be placed first. For left-censored data, if a censored observation has the same value as an uncensored one, the censored observation should be placed first.
Note that in this case the quantity does not necessarily represent the ’th “largest” observation from the (unknown) complete sample.
Finally, let (omega) denote the set of subscripts in the “ordered” sample that correspond to uncensored observations.
Estimation
Maximum Likelihood Estimation
(method="mle")
For Type I left censored data, the likelihood function is given by:
where and denote the probability density function (pdf) and cumulative distribution function (cdf) of the population (Cohen, 1963; Cohen, 1991, pp.6, 50). That is,
(Johnson et al., 1994, p.343). For left singly censored data, Equation (7) simplifies to:
Similarly, for Type I right censored data, the likelihood function is given by:
and for right singly censored data this simplifies to:
The maximum likelihood estimators are computed by minimizing the negative log-likelihood function.
Confidence Intervals
This section explains how confidence intervals for the mean
are computed.
Likelihood Profile
(ci.method="profile.likelihood")
This method was proposed by Cox (1970, p.88), and Venzon and Moolgavkar
(1988) introduced an efficient method of computation. This method is
also discussed by Stryhn and Christensen (2003) and Royston (2007). The
idea behind this method is to invert the likelihood-ratio test to obtain
a confidence interval for the mean
while treating the coefficient of variation
as a nuisance parameter. Equation (7) above shows the form of the
likelihood function
for multiply left-censored data and Equation (10) shows the function for
multiply right-censored data, where
and
are defined by Equations (3) and (4).
Following Stryhn and Christensen (2003), denote the maximum likelihood estimates of the mean and coefficient of variation by . The likelihood ratio test statistic () of the hypothesis (where is a fixed value) equals the drop in between the “full” model and the reduced model with fixed at , i.e.,
where is the maximum likelihood estimate of for the reduced model (i.e., when ). Under the null hypothesis, the test statistic follows a chi-squared distribution with 1 degree of freedom.
Alternatively, we may express the test statistic in terms of the profile likelihood function for the mean , which is obtained from the usual likelihood function by maximizing over the parameter , i.e.,
Then we have
A two-sided confidence interval for the mean consists of all values of for which the test is not significant at level :
where denotes the ’th quantile of the chi-squared distribution with degrees of freedom. One-sided lower and one-sided upper confidence intervals are computed in a similar fashion, except that the quantity in Equation (15) is replaced with .
Normal Approximation
(ci.method="normal.approx")
This method constructs approximate
confidence intervals for
based on the assumption that the estimator of
is approximately normally distributed. That is, a two-sided
confidence interval for
is constructed as:
where denotes the estimate of , denotes the estimated asymptotic standard deviation of the estimator of , denotes the assumed sample size for the confidence interval, and denotes the ’th quantile of Student’s t-distribuiton with degrees of freedom. One-sided confidence intervals are computed in a similar fashion.
The argument ci.sample.size determines the value of
and by default is equal to the number of uncensored observations. This
is simply an ad-hoc method of constructing confidence intervals and is
not based on any published theoretical results.
When pivot.statistic="z", the
’th
quantile from the standard
normal distribution is used in place of the
’th
quantile from Student’s t-distribution.
The standard deviation of the mle of is estimated based on the inverse of the Fisher Information matrix.
Bootstrap and Bias-Corrected Bootstrap Approximation
(ci.method="bootstrap")
The bootstrap is a nonparametric method of estimating the distribution
(and associated distribution parameters and quantiles) of a sample
statistic, regardless of the distribution of the population from which
the sample was drawn. The bootstrap was introduced by Efron (1979) and a
general reference is Efron and Tibshirani (1993).
In the context of deriving an approximate confidence interval for the population mean , the bootstrap can be broken down into the following steps:
egammaCensored, the
number of bootstraps
is determined by the argument n.bootstraps (see the
arguments in the egammaCensored
help page). The default value of n.bootstraps is
1000.ecdfPlot),
and then create a confidence interval for
based on this estimated cdf.The two-sided percentile interval (Efron and Tibshirani, 1993, p.170) is computed as:
where denotes the empirical cdf evaluated at and thus denotes the ’th empirical quantile, that is, the ’th quantile associated with the empirical cdf. Similarly, a one-sided lower confidence interval is computed as:
and a one-sided upper confidence interval is computed as:
The function egammaCensored calls the R function quantile
to compute the empirical quantiles used in Equations (17)-(19).
The percentile method bootstrap confidence interval is only first-order accurate (Efron and Tibshirani, 1993, pp.187-188), meaning that the probability that the confidence interval will contain the true value of can be off by , where is some constant. Efron and Tibshirani (1993, pp.184-188) proposed a bias-corrected and accelerated interval that is second-order accurate, meaning that the probability that the confidence interval will contain the true value of may be off by instead of . The two-sided bias-corrected and accelerated confidence interval is computed as:
where
where the quantity denotes the estimate of using all the values in except the ’th one, and
A one-sided lower confidence interval is given by:
and a one-sided upper confidence interval is given by:
where and are computed as for a two-sided confidence interval, except is replaced with in Equations (21) and (22).
The constant incorporates the bias correction, and the constant is the acceleration constant. The term “acceleration” refers to the rate of change of the standard error of the estimate of with respect to the true value of (Efron and Tibshirani, 1993, p.186). For a normal (Gaussian) distribution, the standard error of the estimate of does not depend on the value of , hence the acceleration constant is not really necessary.
When ci.method="bootstrap", the function
egammaCensored computes both the percentile method and
bias-corrected and accelerated method bootstrap confidence
intervals.
Help topic: egammaAltCensored.
If x or censored contain any missing
(NA), undefined (NaN) or infinite
(Inf, -Inf) values, they will be removed prior
to performing the estimation.
Let
denote a vector of
observations from a gamma
distribution with parameters
shape=
and
scale=.
The relationship between these parameters and the mean
and coefficient of variation
of this distribution is given by:
Assume () of these observations are known and () of these observations are all censored below (left-censored) or all censored above (right-censored) at fixed censoring levels
For the case when , the data are said to be Type I multiply censored. For the case when , set . If the data are left-censored and all known observations are greater than or equal to , or if the data are right-censored and all known observations are less than or equal to , then the data are said to be Type I singly censored (Nelson, 1982, p.7), otherwise they are considered to be Type I multiply censored.
Let denote the number of observations censored below or above censoring level for , so that
Let denote the “ordered” observations, where now “observation” means either the actual observation (for uncensored observations) or the censoring level (for censored observations). For right-censored data, if a censored observation has the same value as an uncensored one, the uncensored observation should be placed first. For left-censored data, if a censored observation has the same value as an uncensored one, the censored observation should be placed first.
Note that in this case the quantity does not necessarily represent the ’th “largest” observation from the (unknown) complete sample.
Finally, let (omega) denote the set of subscripts in the “ordered” sample that correspond to uncensored observations.
Estimation
Maximum Likelihood Estimation
(method="mle")
For Type I left censored data, the likelihood function is given by:
where and denote the probability density function (pdf) and cumulative distribution function (cdf) of the population (Cohen, 1963; Cohen, 1991, pp.6, 50). That is,
(Johnson et al., 1994, p.343), where and are defined in terms of and by Equations (1) and (2) above.
For left singly censored data, Equation (7) simplifies to:
Similarly, for Type I right censored data, the likelihood function is given by:
and for right singly censored data this simplifies to:
The maximum likelihood estimators are computed by minimizing the negative log-likelihood function.
Confidence Intervals
This section explains how confidence intervals for the mean
are computed.
Likelihood Profile
(ci.method="profile.likelihood")
This method was proposed by Cox (1970, p.88), and Venzon and Moolgavkar
(1988) introduced an efficient method of computation. This method is
also discussed by Stryhn and Christensen (2003) and Royston (2007). The
idea behind this method is to invert the likelihood-ratio test to obtain
a confidence interval for the mean
while treating the coefficient of variation
as a nuisance parameter. Equation (7) above shows the form of the
likelihood function
for multiply left-censored data, where
and
are defined by Equations (3) and (4), and Equation (10) shows the
function for multiply right-censored data.
Following Stryhn and Christensen (2003), denote the maximum likelihood estimates of the mean and coefficient of variation by . The likelihood ratio test statistic () of the hypothesis (where is a fixed value) equals the drop in between the “full” model and the reduced model with fixed at , i.e.,
where is the maximum likelihood estimate of for the reduced model (i.e., when ). Under the null hypothesis, the test statistic follows a chi-squared distribution with 1 degree of freedom.
Alternatively, we may express the test statistic in terms of the profile likelihood function for the mean , which is obtained from the usual likelihood function by maximizing over the parameter , i.e.,
Then we have
A two-sided confidence interval for the mean consists of all values of for which the test is not significant at level :
where denotes the ’th quantile of the chi-squared distribution with degrees of freedom. One-sided lower and one-sided upper confidence intervals are computed in a similar fashion, except that the quantity in Equation (15) is replaced with .
Normal Approximation
(ci.method="normal.approx")
This method constructs approximate
confidence intervals for
based on the assumption that the estimator of
is approximately normally distributed. That is, a two-sided
confidence interval for
is constructed as:
where denotes the estimate of , denotes the estimated asymptotic standard deviation of the estimator of , denotes the assumed sample size for the confidence interval, and denotes the ’th quantile of Student’s t-distribuiton with degrees of freedom. One-sided confidence intervals are computed in a similar fashion.
The argument ci.sample.size determines the value of
and by default is equal to the number of uncensored observations. This
is simply an ad-hoc method of constructing confidence intervals and is
not based on any published theoretical results.
When pivot.statistic="z", the
’th
quantile from the standard
normal distribution is used in place of the
’th
quantile from Student’s t-distribution.
The standard deviation of the mle of is estimated based on the inverse of the Fisher Information matrix.
Bootstrap and Bias-Corrected Bootstrap Approximation
(ci.method="bootstrap")
The bootstrap is a nonparametric method of estimating the distribution
(and associated distribution parameters and quantiles) of a sample
statistic, regardless of the distribution of the population from which
the sample was drawn. The bootstrap was introduced by Efron (1979) and a
general reference is Efron and Tibshirani (1993).
In the context of deriving an approximate confidence interval for the population mean , the bootstrap can be broken down into the following steps:
egammaAltCensored, the number of bootstraps
is determined by the argument n.bootstraps (see the
arguments in the egammaAltCensored
help page). The default value of n.bootstraps is
1000.ecdfPlot),
and then create a confidence interval for
based on this estimated cdf.The two-sided percentile interval (Efron and Tibshirani, 1993, p.170) is computed as:
where denotes the empirical cdf evaluated at and thus denotes the ’th empirical quantile, that is, the ’th quantile associated with the empirical cdf. Similarly, a one-sided lower confidence interval is computed as:
and a one-sided upper confidence interval is computed as:
The function egammaAltCensored calls the R function quantile
to compute the empirical quantiles used in Equations (17)-(19).
The percentile method bootstrap confidence interval is only first-order accurate (Efron and Tibshirani, 1993, pp.187-188), meaning that the probability that the confidence interval will contain the true value of can be off by , where is some constant. Efron and Tibshirani (1993, pp.184-188) proposed a bias-corrected and accelerated interval that is second-order accurate, meaning that the probability that the confidence interval will contain the true value of may be off by instead of . The two-sided bias-corrected and accelerated confidence interval is computed as:
where
where the quantity denotes the estimate of using all the values in except the ’th one, and
A one-sided lower confidence interval is given by:
and a one-sided upper confidence interval is given by:
where and are computed as for a two-sided confidence interval, except is replaced with in Equations (21) and (22).
The constant incorporates the bias correction, and the constant is the acceleration constant. The term “acceleration” refers to the rate of change of the standard error of the estimate of with respect to the true value of (Efron and Tibshirani, 1993, p.186). For a normal (Gaussian) distribution, the standard error of the estimate of does not depend on the value of , hence the acceleration constant is not really necessary.
When ci.method="bootstrap", the function
egammaAltCensored computes both the percentile method and
bias-corrected and accelerated method bootstrap confidence
intervals.
Help topic: epoisCensored.
If x or censored contain any missing
(NA), undefined (NaN) or infinite
(Inf, -Inf) values, they will be removed prior
to performing the estimation.
Let
denote a vector of
observations from a Poisson
distribution with mean
lambda=.
Assume () of these observations are known and () of these observations are all censored below (left-censored) or all censored above (right-censored) at fixed censoring levels
For the case when , the data are said to be Type I multiply censored. For the case when , set . If the data are left-censored and all known observations are greater than or equal to , or if the data are right-censored and all known observations are less than or equal to , then the data are said to be Type I singly censored (Nelson, 1982, p.7), otherwise they are considered to be Type I multiply censored.
Let denote the number of observations censored below or above censoring level for , so that
Let denote the “ordered” observations, where now “observation” means either the actual observation (for uncensored observations) or the censoring level (for censored observations). For right-censored data, if a censored observation has the same value as an uncensored one, the uncensored observation should be placed first. For left-censored data, if a censored observation has the same value as an uncensored one, the censored observation should be placed first.
Note that in this case the quantity does not necessarily represent the ’th “largest” observation from the (unknown) complete sample.
Finally, let (omega) denote the set of subscripts in the “ordered” sample that correspond to uncensored observations.
Estimation
Maximum Likelihood Estimation
(method="mle")
For Type I left censored data, the likelihood function is given by:
where and denote the probability density function (pdf) and cumulative distribution function (cdf) of the population (Cohen, 1963; Cohen, 1991, pp.6, 50). That is,
(Johnson et al., 1992, p.151). For left singly censored data, equation (3) simplifies to:
Similarly, for Type I right censored data, the likelihood function is given by:
and for right singly censored data this simplifies to:
The maximum likelihood estimators are computed by maximizing the likelihood function. For right-censored data, taking the derivative of the log-likelihood function with respect to and setting this to 0 produces the following equation:
where
Note that the quantity defined in equation (10) is simply the mean of the uncensored observations.
For left-censored data, taking the derivative of the log-likelihood function with respect to and setting this to 0 produces the following equation:
The function epoisCensored computes the maximum
likelihood estimator of
by solving Equation (9) (right-censored data) or Equation (11)
(left-censored data); it uses the sample mean of the uncensored
observations as the initial value.
Setting Censored Observations to Half the Censoring Level
(method="half.cen.level")
This method is applicable only to left censored data. This method
involves simply replacing all the censored observations with half their
detection limit, and then computing the mean and standard deviation with
the usual formulas (see epois).
This method is included only to allow comparison of this method to other methods. Setting left-censored observations to half the censoring level is not recommended.
Confidence Intervals
This section explains how confidence intervals for the mean
are computed.
Likelihood Profile
(ci.method="profile.likelihood")
This method was proposed by Cox (1970, p.88), and Venzon and Moolgavkar
(1988) introduced an efficient method of computation. This method is
also discussed by Stryhn and Christensen (2003) and Royston (2007). The
idea behind this method is to invert the likelihood-ratio test to obtain
a confidence interval for the mean
.
Equation (3) above shows the form of the likelihood function
for multiply left-censored data, and Equation (7) shows the function for
multiply right-censored data.
Following Stryhn and Christensen (2003), denote the maximum likelihood estimate of the mean by . The likelihood ratio test statistic () of the hypothesis (where is a fixed value) equals the drop in between the “full” model and the reduced model with fixed at , i.e.,
. Under the null hypothesis, the test statistic follows a chi-squared distribution with 1 degree of freedom.
A two-sided confidence interval for the mean consists of all values of for which the test is not significant at level :
where denotes the ’th quantile of the chi-squared distribution with degrees of freedom. One-sided lower and one-sided upper confidence intervals are computed in a similar fashion, except that the quantity in Equation (12) is replaced with .
Normal Approximation
(ci.method="normal.approx")
This method constructs approximate
confidence intervals for
based on the assumption that the estimator of
is approximately normally distributed. That is, a two-sided
confidence interval for
is constructed as:
where denotes the estimate of , denotes the estimated asymptotic standard deviation of the estimator of , denotes the assumed sample size for the confidence interval, and denotes the ’th quantile of Student’s t-distribuiton with degrees of freedom. One-sided confidence intervals are computed in a similar fashion.
The argument ci.sample.size determines the value of
and by default is equal to the number of uncensored observations. This
is simply an ad-hoc method of constructing confidence intervals and is
not based on any published theoretical results.
When pivot.statistic="z", the
’th
quantile from the standard
normal distribution is used in place of the
’th
quantile from Student’s t-distribution.
When
is estimated with the maximum likelihood estimator
(method="mle"), the variance of
is estimated based on the inverse of the Fisher Information matrix. When
is estimated using the half-censoring-level method
(method="half.cen.level"), the variance of
is estimated as:
where denotes the assumed sample size (see above).
Bootstrap and Bias-Corrected Bootstrap Approximation
(ci.method="bootstrap")
The bootstrap is a nonparametric method of estimating the distribution
(and associated distribution parameters and quantiles) of a sample
statistic, regardless of the distribution of the population from which
the sample was drawn. The bootstrap was introduced by Efron (1979) and a
general reference is Efron and Tibshirani (1993).
In the context of deriving an approximate confidence interval for the population mean , the bootstrap can be broken down into the following steps:
epoisCensored, the
number of bootstraps
is determined by the argument n.bootstraps (see the
arguments in the epoisCensored
help page). The default value of n.bootstraps is
1000.ecdfPlot),
and then create a confidence interval for
based on this estimated cdf.The two-sided percentile interval (Efron and Tibshirani, 1993, p.170) is computed as:
where denotes the empirical cdf evaluated at and thus denotes the ’th empirical quantile, that is, the ’th quantile associated with the empirical cdf. Similarly, a one-sided lower confidence interval is computed as:
and a one-sided upper confidence interval is computed as:
The function epoisCensored calls the R function quantile
to compute the empirical quantiles used in Equations (15)-(17).
The percentile method bootstrap confidence interval is only first-order accurate (Efron and Tibshirani, 1993, pp.187-188), meaning that the probability that the confidence interval will contain the true value of can be off by , where is some constant. Efron and Tibshirani (1993, pp.184-188) proposed a bias-corrected and accelerated interval that is second-order accurate, meaning that the probability that the confidence interval will contain the true value of may be off by instead of . The two-sided bias-corrected and accelerated confidence interval is computed as:
where
where the quantity denotes the estimate of using all the values in except the ’th one, and
A one-sided lower confidence interval is given by:
and a one-sided upper confidence interval is given by:
where and are computed as for a two-sided confidence interval, except is replaced with in Equations (19) and (20).
The constant incorporates the bias correction, and the constant is the acceleration constant. The term “acceleration” refers to the rate of change of the standard error of the estimate of with respect to the true value of (Efron and Tibshirani, 1993, p.186). For a normal (Gaussian) distribution, the standard error of the estimate of does not depend on the value of , hence the acceleration constant is not really necessary.
When ci.method="bootstrap", the function
epoisCensored computes both the percentile method and
bias-corrected and accelerated method bootstrap confidence
intervals.