lspline
: Linear Splines with Convenient ParameterizationsLinear splines with convenient parameterizations such that:
Knot locations can be specified
lspline()
)x
into q
equal-frequency
intervals (qlspline()
)x
into n
equal-width intervals
(elspline()
)Inspired by Stata command mkspline
and function lspline()
from
package ares (Junger and Ponce de Leon 2011). As such, the
implementation follows Greene (2003), chapter 7.5.2.
From CRAN or development version using remotes:
remotes::install_github("mbojan/lspline", build_vignettes = TRUE)
See package homepage and the vignette.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.