hare  R Documentation 
Fit a hazard regression model: linear splines are used to model the baseline hazard, covariates, and interactions. Fitted models can be, but do not need to be, proportional hazards models.
hare(data, delta, cov, penalty, maxdim, exclude, include, prophaz = FALSE, additive = FALSE, linear, fit, silent = TRUE)
data 
vector of observations. Observations may or may not be right censored. All observations should be nonnegative. 
delta 
binary vector with the same length as 
cov 
covariates: matrix with as many rows as the length of 
penalty 
the parameter to be used in the AIC criterion. The method chooses
the number of knots that minimizes 
maxdim 
maximum dimension (default is \code{6 * length(data)^0.2}. 
exclude 
combinations to be excluded  this should be a matrix with 2
columns  if for example 
include 
those combinations that can be included. Should have the same format
as 
prophaz 
should the model selection be restricted to proportional hazards models? 
additive 
should the model selection be restricted to additive models? 
linear 
vector indicating for which of the variables no knots should
be entered. For example, if 
fit 

silent 
suppresses the printing of diagnostic output about basis functions added or deleted, Raostatistics, Waldstatistics and loglikelihoods. 
An object of class
hare
, which is organized to serve as input for plot.hare
,
summary.hare
, dhare
(conditional density), hhare
(conditional hazard rate), phare
(conditional probabilities), qhare
(conditional quantiles), and rhare
(random numbers).
The object is a list with the following members:
ncov 
number of covariates. 
ndim 
number of dimensions of the fitted model. 
fcts 
matrix of size second element: which knot (0 means: constant (time) or linear (covariate)); third element: second covariate involved ( fourth element: knot involved (if the third element is fifth element: beta; sixth element: standard error of beta. 
knots 
a matrix with 
penalty 
the parameter used in the AIC criterion. 
max 
maximum element of survival data. 
ranges 
column 
logl 
matrix with two columns. The 
sample 
sample size. 
Charles Kooperberg clk@fredhutch.org.
Charles Kooperberg, Charles J. Stone and Young K. Truong (1995). Hazard regression. Journal of the American Statistical Association, 90, 7894.
Charles J. Stone, Mark Hansen, Charles Kooperberg, and Young K. Truong. The use of polynomial splines and their tensor products in extended linear modeling (with discussion) (1997). Annals of Statistics, 25, 1371–1470.
heft
,
plot.hare
,
summary.hare
,
dhare
,
hhare
,
phare
,
qhare
,
rhare
.
fit < hare(testhare[,1], testhare[,2], testhare[,3:8])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.