Description Usage Arguments Value Author(s) References See Also Examples
View source: R/loggammacensrob.R
Five different type of robust procedures are provided for the estimation of the parameters in the three parameters extended Log Gamma model in presence of censored observations.
1 2 |
x |
numeric. A vector with the dataset. |
delta |
numeric, 0 or 1. 0 indicated censored observations. |
start |
|
weights |
numeric. A vector of weights used in the method |
method |
character. The method used, see Details below. Default is
|
control |
list. An object from function
|
... |
further arguments can be passed directly to the function
instead of using the |
An object of class 'loggammacensrob'. A list that includes the following components:
mu |
location parameter. |
sigma |
scale parameter. |
lambda |
shape parameter. |
eta |
estimate of E(exp(x)) parameter. |
weights |
the final weights. |
iterations |
number of iterations. |
error |
if not |
data |
the original dataset. |
delta |
the original dataset. |
method |
the method used. |
C. Agostinelli, A. Marazzi and V.J. Yohai
C. Agostinelli, I. Locatelli, A. Marazzi and V.J. Yohai (2015) Robust estimators of accelerated failure time regression with generalized log-gamma errors. Submitted.
LogGammaDist
and loggammarob
for the case
without censored observations.
1 2 3 4 5 6 7 8 9 | set.seed(1234)
x <- sort(rloggamma(n=80, lambda=1))
cens <- rloggamma(n=80, mu=1.5, lambda=1)
delta <- as.numeric(x <= cens)
x[delta==0] <- cens[delta==0]
res <- loggammacensrob(x, delta, method="oneTML",
control=loggammarob.control(lower=0, upper=2, n=30))
print(res)
summary(res)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.