I've been getting several errors trying to use package distance to estimate detection probability (i.e., the ds function). I get a couple of errors both when I do not truncate or use cutpoints (i.e., group distance data).
When I do not truncate or use cutpoints i get the following
Warning in if (all(class(data) != "data.frame") & class(data) != "list") { :
the condition has length > 1 and only the first element will be used
Starting AIC adjustment term selection.
Fitting hazard-rate key function
Key only model: not constraining for monotonicity.
AIC= 11258.527
Fitting hazard-rate key function with cosine(2) adjustments
AIC= 11260.364
When I do I get a myriad of errors (including the error above). The following error pops up probably 100 times... or perhaps as many times as I have samples.
gosolnp-->warning: Inf detected in function call...check your function
Warning in .safefun(x, fun, gosolnp_parnames, ...) :
gosolnp-->warning: Inf detected in function call...check your function
Attached is an example of my data. Code is below....
corvid_test<-ds(Distance_Simp,transect="point", key ="hr")
corvid_test<-ds(Distance_Simp,truncation=950,cutpoints=c(0,150,250,350,450,550,650,750,850,950),transect="point", key ="hr")