conreg
objects
"fitted"(object, ...)
"residuals"(object, ...)
"knots"(Fn, ...)
"lines"(x, type = "l", col = 2, lwd = 1.5, show.knots = TRUE, add.iSpline = TRUE, force.iSpl = FALSE, ...)
"plot"(x, type = "l", col = 2, lwd = 1.5, show.knots = TRUE, add.iSpline = TRUE, force.iSpl = FALSE, xlab = "x", ylab = expression(s[c](x)), sub = "simple concave regression", col.sub = col, ...)
"predict"(object, x, deriv = 0, ...)
"print"(x, digits = max(3, getOption("digits") - 3), ...)
conreg
, i.e., typically
the result of conreg(..)
. For predict()
,
x
is a numeric vector of abscissa values at which to evaluate
the concave/convex spline function.plot.default
.force.iSpl
is
TRUE
.predict
, integer specifying the derivate to be
computed; currently must be 0
or 1
.conreg
, ....
example(conreg, echo = FALSE)
class(rc) # "conreg"
rc # calls the print method
knots(rc)
plot(rc)
xx <- seq(-0.1, 1.1, length=201) # slightly extrapolate
yx <- predict(rc, xx)
plot(xx, yx, type = "l",
main="plot(xx, predict( conreg(.), xx))")
Run the code above in your browser using DataLab