When i use a package named HydroMe to fit a model, some data groups will return the following errors:
Error in qr.default(.swts * attr(rhs, "gradient")) :
NA/NaN/Inf in foreign function call (arg 1)
Actually,there is no missing value in the data groups. the codes are as followed:
library(HydroMe)
fortst<-read.csv(file="F:/fortst.csv")
van.lis <-nlsList(y~SSvan(x,Thr, Ths, alp, scal)|Sample,data=fortst)
the example data canbe download from here:
http://www.fileden.com/files/2012/9/13/3346981/fortst.csv