dhare | R Documentation |
Density (dhare
), cumulative probability (phare
), hazard rate (hhare
), quantiles
(qhare
), and random samples (rhare
) from
a hare
object.
dhare(q, cov, fit)
hhare(q, cov, fit)
phare(q, cov, fit)
qhare(p, cov, fit)
rhare(n, cov, fit)
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 |
|
Elements of q
or p
that are missing will cause the
corresponding elements of the result to be missing.
Densities (dhare
), hazard rates (hhare
),
probabilities (phare
), quantiles (qhare
),
or a random sample (rhare
) from a hare
object.
Charles Kooperberg clk@fredhutch.org.
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.
hare
,
plot.hare
,
summary.hare
.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.