getData | R Documentation |
Extract data object from an optim_fit
object.
getData(object)
object |
object of class |
Returns a data frame with elements x and y.
Steven Novick
optim_fit
, rout_fitter
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.