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 )
x
: Marginal data pointsknots
: The list of interior knots of the numbers of interior knotsp
: Degrees for B-splines, default = 3m
: Orders of difference penalty, default = 2periodicity
: Booleanweight
: optional argument