pspline_setting function

pspline.setting.R from refund

pspline.setting.R from refund

A slightly modified copy of pspline.setting from refund. Copied here because the original function is not exported from the package.

pspline_setting( x, knots = select_knots(x, 35), p = 3, m = 2, periodicity = FALSE, weight = NULL )

Arguments

  • x: Marginal data points
  • knots: The list of interior knots of the numbers of interior knots
  • p: Degrees for B-splines, default = 3
  • m: Orders of difference penalty, default = 2
  • periodicity: Boolean
  • weight: optional argument
  • Maintainer: Erjia Cui
  • License: GPL (>= 3)
  • Last published: 2025-03-13