getData {OptimModel} | R Documentation |
Extract data object from an optim fit
Description
Extract data object from an optim_fit
object.
Usage
getData(object)
Arguments
object |
object of class |
Value
Returns a data frame with elements x and y.
Author(s)
Steven Novick
See Also
Examples
set.seed(123L)
x = rep( c(0, 2^(-4:4)), each =4 )
theta = c(0, 100, log(.5), 2)
y = hill_model(theta, x) + rnorm( length(x), sd=2 )
fit = optim_fit(c(0, 100, .5, 1), f.model=hill_model, x=x, y=y)
d=getData(fit)
[Package OptimModel version 2.0-1 Index]