dhare {polspline} | R Documentation |
Hare: hazard regression
Description
Density (dhare
), cumulative probability (phare
), hazard rate (hhare
), quantiles
(qhare
), and random samples (rhare
) from
a hare
object.
Usage
dhare(q, cov, fit)
hhare(q, cov, fit)
phare(q, cov, fit)
qhare(p, cov, fit)
rhare(n, cov, fit)
Arguments
q |
vector of quantiles. Missing values ( |
p |
vector of probabilities. Missing values ( |
n |
sample size. If |
cov |
covariates. There are several possibilities. If a vector of length
|
fit |
|
Details
Elements of q
or p
that are missing will cause the
corresponding elements of the result to be missing.
Value
Densities (dhare
), hazard rates (hhare
),
probabilities (phare
), quantiles (qhare
),
or a random sample (rhare
) from a hare
object.
Author(s)
Charles Kooperberg clk@fredhutch.org.
References
Charles Kooperberg, Charles J. Stone and Young K. Truong (1995). Hazard regression. Journal of the American Statistical Association, 90, 78-94.
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.
See Also
hare
,
plot.hare
,
summary.hare
.
Examples
fit <- hare(testhare[,1], testhare[,2], testhare[,3:8])
dhare(0:10, testhare[117,3:8], fit)
hhare(0:10, testhare[1:11,3:8], fit)
phare(10, testhare[1:25,3:8], fit)
qhare((1:19)/20, testhare[117,3:8], fit)
rhare(10, testhare[117,3:8], fit)