ortresiduals.OEFPIL {OEFPIL} | R Documentation |
Orthogonal residuals from an OEFPIL object
Description
Function for calculating orthogonal residuals of an "OEFPIL"
object (i.e. the shortest Euclidean distance between data points and the estimated function from OEFPIL).
Usage
ortresiduals.OEFPIL(object, min.c)
Arguments
object |
an object of class |
min.c |
a numeric value, for defining minimization interval for the |
Value
Returns an object of type list containing following components
x.ores |
a numerical vector of x coordinates of points, where the minimal distance is realized. |
o.resid |
a numerical vector of orthogonal residuals (minimal Euclidean distances between data points and estimated function). |
SSort |
the orthogonal sum of squares. |
Note
The value min.c
should not be too small. In that case the minimization interval is too narrow and the result can be misleading (see Example 3).
See Also
Examples
##-- Continuing the coef.OEFPIL(.) example:
##Example 1 Use ortresiduals.OEFPIL function on the OEFPIL object, with specified value 'min.c'
ortresiduals.OEFPIL(st1,5)
##Example 2 Use ortresiduals.OEFPIL function without value 'min.c' (defaut.value = 0.05 * range(x))
ortresiduals.OEFPIL(st1)
##Example 3 Choice of too narrow interval. Misleading result!
ortresiduals.OEFPIL(st1,0.5)