Given a univariate array of covariate values, places a set of knots for a regression spline evenly through the covariate values.
array of covariate values (need not be sorted).
integer indicating the required number of knots.
Places knots evenly throughout a set of covariates. For example, if you had 11 covariate values and wanted 6 knots then a knot would be placed at the first (sorted) covariate value and every second (sorted) value thereafter. With less convenient numbers of data and knots the knots are placed within intervals between data in order to achieve even coverage, where even means having approximately the same number of data between each pair of knots.
An array of knot locations.
Simon N. Wood firstname.lastname@example.org
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.