Usage
gcv.ubre_grad(rho, G, gamma, ee, eb, esp, SVD=TRUE,
check.analytical, del)
Arguments
rho
log of the initial values of the smoothing parameters.
G
a list of items needed to fit a SCAM.
gamma
A constant multiplier to inflate the model degrees of freedom in the GCV or UBRE/AIC score.
ee
Get the enviroment for the model coefficients.
eb
Get the enviroment for the model coefficients derivatives.
esp
Get the enviroment for the smoothing parameter.
SVD
If TRUE then svd is applied to the augmented working model matrix,
if SVD
is FALSE then qr decomposition will be used (not recommended).
check.analytical
If this is TRUE
then finite difference derivatives of GCV/UBRE score will be calculated,
otherwise NULL
.
del
A positive scalar (default is 1e-4) giving an increment for finite difference approximation when
check.analytical=TRUE
, otherwise NULL
.