Usage
bj(formula=formula(data), data, subset, na.action=na.delete,
link="log", control, method='fit', x=FALSE, y=FALSE,
time.inc)## S3 method for class 'bj':
print(x, digits=4, long=FALSE, coefs=TRUE, latex=FALSE,
title="Buckley-James Censored Data Regression", \dots)
## S3 method for class 'bj':
residuals(object, type=c("censored","censored.normalized"),...)
bjplot(fit, which=1:dim(X)[[2]])
## S3 method for class 'bj':
validate(fit, method="boot", B=40,
bw=FALSE,rule="aic",type="residual",sls=.05,aics=0,
force=NULL, estimates=TRUE, pr=FALSE,
tol=1e-7, rel.tolerance=1e-3, maxiter=15, \dots)
bj.fit(x, y, control)
Arguments
formula
an S statistical model formula. Interactions up to third order are
supported. The left hand side must be a Surv
object.
data,subset,na.action
the usual statistical model fitting arguments
fit
a fit created by bj
, required for all functions except bj
.
x
a design matrix with or without a first column of ones, to pass
to bj.fit
. All models will have an intercept. For
print.bj
is a result of bj
. For bj
, set
x=TRUE
to include the
y
a Surv
object to pass to bj.fit
as the two-column response
variable. Only right censoring is allowed, and there need not be any
censoring. For bj
, set y
to TRUE
to include the
link
set to, for example, "log"
(the default) to model the log of the
response, or "identity"
to model the untransformed response.
control
a list containing any or all of the following components: iter.max
(maximum number of iterations allowed, default is 20),
eps
(convergence criterion: concergence is assumed when the ratio of
sum of squared errors from
method
set to "model.frame"
or "model.matrix"
to return one of those
objects rather than the model fit.
time.inc
setting for default time spacing.
Default is 30 if time variable has units="Day"
, 1 otherwise, unless
maximum follow-up time $< 1$. Then max time/10 is used as time.inc
.
If time.inc
is not given and max t
digits
number of significant digits to print if not 4.
long
set to TRUE
to print the correlation matrix for parameter estimates
coefs
specify coefs=FALSE
to suppress printing the table
of model coefficients, standard errors, etc. Specify coefs=n
to print only the first n
regression coefficients in the
model.
latex
a logical value indicating whether information should be
formatted as plain text or as LaTeX markup
title
a character string title to be passed to prModFit
type
type of residual desired. Default is censored unnormalized residuals,
defined as link(Y) - linear.predictors, where the
link function was usually the log function. You can specify
type="censored.normalized"
to divide the residua
which
vector of integers or character strings naming elements of the design
matrix (the names of the original predictors if they entered the model
linearly) for which to have bjplot
make plots of only the variables listed in which
B,bw,rule,sls,aics,force,estimates,pr,tol,rel.tolerance,maxiter
...
ignored for print
; passed through to
predab.resample
for validate