select_knots function

select_knots.R from refund package

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")

Arguments

  • t: Numeric
  • knots: Numeric scalar or vector, the number/numbers of knots or the vector/vectors of knots for each dimension. Default = 10
  • p: Numeric, the degrees of B-splines. Default = 3.
  • option: Character, knot spacing, can be "equally-spaced" or "quantile"
  • Maintainer: Erjia Cui
  • License: GPL (>= 3)
  • Last published: 2025-03-13