Hello,
I am comparing my experimental data with some models to find how much my data fit with these models. I use R studio, but it gives error and I am not able the causes:
mu<-c(0.010, 0.012, 0.044, 0.055, 0.055, 0.044, 0.045);
S <-c(0.3, 0.6, 1.5, 3.75, 11.25, 18.75, 30)
df<-data.frame(mu,S)
df
m1<-nls(mu~S)
a=(0.11*S)
c=(S^2)/600
d=(873+S+c)
muA<-(a)/(d)
muA
mAn<-nls(muA~S,start=list(df),alg = "plinear")
# error:
Error in object[[3L]][[1L]] : object of type 'symbol' is not subsettable
anova(m1,mAn)
Error in anovalist.nls(object, ...) :
'anova' is only defined for sequences of "nls" objects
Much appreciated if you help in this issue
You provided a linear model
m1<-nls(mu~S)
whereas nls can only be applied on nonlinear model