Description Usage Arguments Value Examples

`quantileknots`

creates knots at sample quantiles

1 | ```
quantileknots(x, nknots, boundstab)
``` |

`x` |
a vector. The knots are at sample quantiles of x. |

`nknots` |
number of knots |

`boundstab` |
parameter for boundary stability. The default is 0. If boundstab = 1, then nknots+2 knots are created and the first and last are deleted. This mitigates the extra variability of regression spline estimates near the boundaries. |

a vector of knots at sample quantiles of x.

1 2 3 4 | ```
library(ODS)
x <- c(1, 2, 3, 4, 5)
quantileknots(x, 3, 0)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.