singular gradient

  1. H

    nls error says "singular gradient"

    I cannot get this code to work and I'm sure there is a very simple solution i<-seq(1,length(rhino[,2])-1) j<-seq(2,length(rhino[,2]),1) Increase=c((Population[j]-Population[i])/Population[i]) Years<-c(Year[j]-Year[i]) Years2<-c(0,Population[j]-1960) # Cumulative Years...