search for: ssewrap

Displaying 1 result from an estimated 1 matches for "ssewrap".

Did you mean: gss_wrap
2008 Jun 03
1
nlm behaviour and error
...nlm is minimising: if (((term*bexp) < 0.0001)) { #warning(term*bexp, "=term*bexp",psi,"=psi") theta<-2000 } Now when I run this function anywhere else, there is no problem, whether or the if's condition is met. When I use this in nlm: nlm(f=ssewrap.dist, p=c(292397.7,-.14053,0.03,.0005), .5, 1, 295.15,C,theta) Error in if (((term * bexp) < 1e-04)) { : missing value where TRUE/FALSE needed Now I know that the condition in the if should only be one logical value, but is not the condition above evaluated to a single value, and why does t...