View source: R/default.knots.r
default.knots | R Documentation |
Computes default knots for a given x vector.
default.knots(x, num.knots, knotchoice="quantiles")
x |
The covariate. Note that for B-splines, only the range of |
num.knots |
The number of knots. Defaults to |
knotchoice |
Either "equidistant" or "quantiles" for equidistant and quantile based knots, respectively. Note that in case of B-splines, knots are always equidistant. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.