spreg {stfit}R Documentation

spline regression

Description

spline regression

Usage

spreg(
  x,
  y,
  x.eval,
  minimum.num.obs = 4,
  basis = c("fourier", "bspline"),
  rangeval = c(min(x.eval) - 1, max(x.eval)),
  nbasis = 11,
  ...
)

Arguments

x

independent variable

y

response variable

x.eval

vector to predict on

minimum.num.obs

minimum number of observations needed to run the regression

basis

what basis to use, "fourier" and "bspline" are available

rangeval

see fda::create.basis

nbasis

see fda::create.basis

...

arguments passed to fad::create.basis functions

Value

predicted values at 'x.eval'


[Package stfit version 0.99.9 Index]