select_knots.R from refund package
Copied from select_knots because the original is not exported for use.
select_knots(t, knots = 10, p = 3, option = "equally-spaced")
t
: Numericknots
: Numeric scalar or vector, the number/numbers of knots or the vector/vectors of knots for each dimension. Default = 10p
: Numeric, the degrees of B-splines. Default = 3.option
: Character, knot spacing, can be "equally-spaced"
or "quantile"