Say I have I fit an nls model to some data, d, in R.
#fake data
x<- seq(1,10,by=0.1)
y<- 1*(x / (2 + x))
y<- y + orm(0, 0.05, n =length(y))
d<- data.frame(x,y)
#fit the nls model
model <- nls(y ~ v1*(x/(v2 + x)), start=c(v1=0.9,v2=2.1))
I want to retu from the model object the name of the data frame (d), and the name of the dependent varaible (y).
