Arguments
x
Matrix of explanatory variables, size n,p.
bs
The type rank of lowrank splines: tps or ds.
listvarx
The vector of the names of explanatory variables
lambda
The smoothness coefficient lambda for thin plate splines of
order m.
m
The order of derivatives for the penalty (for thin plate
splines it is the order). This integer m must verify
2m+2s/d>1, where d is the number of explanatory
variables.
s
The power of weighting function. For thin plate splines
s is equal to 0. This real must be strictly smaller than d/2
(where d is the number of explanatory variables) and must
verify 2m+2s/d. To get pseudo-cubic splines,
choose m=2 and s=(d-1)/2 (See Duchon, 1977).
rank
The rank of lowrank splines.