a formula object having a
censor object as the response on the left of
a ~ operator, and the terms, separated by
+ operators, on the right.
fit
an object of class
censorReg.
OPTIONAL ARGUMENTS:
data
an optional data frame in which to interpret the variables occurring in the
formula.
subset
an expression saying which subset of the rows of the data should be used
in the fit. This can be a logical vector (which is replicated to have
length equal to the number of observations), or a numeric vector indicating
which observation numbers are to be included, or a character vector of the
row names to be included. All observations are included by default.
na.omit.p
if
TRUE, then any observation with missing values are removed
from the analysis. If
FALSE and there are missing values then the
function will exit with a message that missing values are not allowed.
If
na.omit.p is
TRUE then
na.action is set to
na.omit in the
call to
survreg. If
na.omit.p is
FALSE then
na.action is set
to
na.fail in the call to
censorReg.
distribution
assumed distribution for the transformed y variable.
eps
convergence threshold. Iteration will continue until the relative change
in deviance is less than
eps.
iter.max
maximum number of iterations to perform.
threshold.value
A value to be subtracted from each of the failure and censoring times(and the
truncation intervals as well). Theis is the time during which no observation
can fail. If not specified, this defaults to 0.0.
threshold
A method used to calculate threshold.value from data. it defaults to
Value which
will take the value specified by threshold.value.
print.short
if
TRUE, a short summary of the parametric survival model is printed.
This output is from the function
print.survreg.
print.long
if
TRUE, a long summary of the parametric survival model is printed.
This output is from the function
summary.censorReg.
save.name
a character string for the name of the data frame to save
standard errors in. If a data frame with this name already exists in
database 1 and it has the appropriate number of rows then the saved values
will be appended to the data frame. If the object already exist in
database 1 and it is not a data frame or it does not have the appropriate
number of rows then a new name is created by appending a number to
save.name and the results are saved in the data frame with the new name.
save.fit.p
if
TRUE, fitted values from the regression are saved in the data frame
save.name.
save.resid.p
if
TRUE, the standrized residuals are saved in the data frame
save.name.
save.resid.deviance.p
if
TRUE, the deviance residuals are saved in the data frame
save.name.
The sum of squares of these add up to the deviance.
save.resid.pearson.p
if
TRUE, the pearson residuals are saved in the data frame
save.name.
These are standardized residuals on the scale of the response.
save.resid.working.p
if
TRUE, the working residuals from the model are saved in the
data frame
save.name. These are the residuals from the final IRLS fit.
save.resid.response.p
if
TRUE, the response residuals from the model are saved in the
data frame
save.name.
X
a data frame to use for computing the predictions.
predictlifetime
if
TRUE, life times are predicted by the fit model.
predictreliability
if
TRUE, reliabilities are predicted by the fit model.
atlifetime
The life time value at which reliabilities are predicted.
rcover
Confidence coverage used in the prediction of life times.
at.reliability
Reliabilities at which stress plot are ploted.
lcover
Confidence coverage used in the prediction of reliability.
predictsavein
a character string for the name of the data frame to save
prediction in.
predictprint
if
TRUE, predictions are printed out.
plotQQ.p
if
TRUE, a QQ plot are displayed.
mle
if
TRUE, the maximum likelihood estimate of the failure probability is displayed on qqplot.
mle.interval
if
TRUE, the confidence intervals for the mle of the failure probability are displayed on qqplot.
coverage
Confidence interval coverage for the qqplot.
plotSN.p
if
TRUE, a stress plot is displayed.
reliabilities
A vector of probabilities for which quantiles are to be computed and ploted on SN plot.
plotResidVsFit.p
if
TRUE, a plot of residuals vs fit is displayed.
plotSqrtAbsResid.p
if
TRUE, a plot of Sqrt abs residuals vs fit is displayed.
plotResponseVsFit.p
if
TRUE, a plot of response residuals vs fit is displayed.
plotSixDistributions.p
if
TRUE, a plot has six distributions on it is displayed.
plotProbVsResid.p
if
TRUE, a plot of probability vs residuals is displayed.
VALUE:
an object of class
censorReg. See the
censorReg.object help file for details.
SIDE EFFECTS:
The object
save.name will be created or appended to if fitted values
or residuals are saved.