logspline
density, distribution function, hazard
function or survival function
from
a logspline density that was fitted using
the 1997 knot addition and deletion algorithm (logspline
).
The 1992 algorithm is available using the oldlogspline
function.plot.logspline(x, n = 100, what = "d", add = FALSE, xlim, xlab = "",
ylab = "", type = "l", ...)
logspline
object, typically the result of logspline
."d"
(density), "p"
(distribution function), "s"
(survival
function) or "h"
(hazard function).logspline
fit at n
equally
spaced points roughly covering the support of the density. (Use
xlim = c(from, to)
to change the range of these points.)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.
logspline
,
summary.logspline
,
dlogspline
,
plogspline
,
qlogspline
,
rlogspline
,y <- rnorm(100)
fit <- logspline(y)
plot(fit)
Run the code above in your browser using DataLab