View source: R/check.analytical.R
check.analytical | R Documentation |
This function calculates the finite-difference approximation of the GCV/UBRE gradient for the fitted model and compares it with the analytical gradient.
check.analytical(object, data, del=1e-6,control)
object |
A fitted |
data |
An original data frame or list containing the model response variable and covariates. |
del |
A positive scalar (default is 1e-6) giving an increment for finite difference approximation. |
control |
Control option list as returned by |
A list is returned with the following items:
dgcv.ubre.fd |
The finite-difference approximation of the gradient. |
check.grad |
The relative difference in percentage between the analytical and finite differenced derivatives. |
Natalya Pya <nat.pya@gmail.com>
scam
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.