Displaying 1 result from an estimated 1 matches for "nerak13".
Did you mean:
nerak
2012 Apr 10
3
nls function
Hi,
I've got the following data:
x<-c(1,3,5,7)
y<-c(37.98,11.68,3.65,3.93)
penetrationks28<-dataframe(x=x,y=y)
now I need to fit a non linear function so I did:
fit <- nls(y ~ I(a+b*exp(1)^(-c * x)), data = penetrationks28, start =
list(a=0,b = 1,c=1), trace = T)
The error message I get is:
Error in nls(y ~ I(a + b * exp(1)^(-c * x)), data = penetrationks28, start =
list(a =