residuals.optim_fit {OptimModel} | R Documentation |
Residuals for optim.fit objects
Description
Provides raw and studentized residuals for optim_fit
objects.
Usage
## S3 method for class 'optim_fit'
residuals(object, type=c("raw", "studentized"),...)
Arguments
object |
An object resulting from |
type |
'raw' or 'studentized' residuals. |
... |
mop up additional arguments. |
Value
Returns a numeric vector.
Author(s)
Steven Novick
See Also
Examples
set.seed(123)
x = rep( c(0, 2^(-4:4)), each=4 )
theta = c(0, 100, log(.5), 2)
y1 = hill_model(theta, x) + rnorm( length(x), sd=2 )
fit1=optim_fit(theta, hill_model, x=x, y=y1)
residuals(fit1)
residuals(fit1, type="s")
[Package OptimModel version 2.0-1 Index]