- x
the vector for the continuous regressor of length(y)
and
the abcissae, on which the B-spline basis is constructed.
- y
the response vector, usually 0/1 or binomial counts.
- xl
the lower limit for the domain of x
(default is min(x
)).
- xr
the upper limit for the domain of x
(default is max(x
)).
- nseg
the number of evenly spaced segments between xl and xr.
- bdeg
the number of the degree of the basis, usually 1, 2 (default), or 3.
- pord
the number of the order of the difference penalty, usually 1, 2, or 3 (defalult).
- lambda
the (positive) number for the tuning parameter for the penalty.
- ntrials
the vector for the number of binomial trials (default = 1).
- wts
the vector of weights, default is 1, zeros allowed.
- show
Set to TRUE or FALSE to display iteration history.
- iter
a scalar to set the maximum number of iterations, default iter = 100
.
- xgrid
a scalar or a vector that gives the x
locations for prediction, useful for plotting.
If a scalar (default 100) is used then a uniform grid of this size along (xl
, xr
).