Learn R Programming

fastFMM (version 0.3.0)

pspline_setting: pspline.setting.R from refund

Description

A slightly modified copy of [pspline.setting](https://rdrr.io/cran/refund/src/R/pspline.setting.R) from `refund`. Copied here because the original function is not exported from the package.

Usage

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