Re: [R] rsolnp- Error (Help!)

2009-09-28 Thread tushar_kul
gt;>> if (NA == 1) 1 >> Error in if (NA == 1) 1 : missing value where TRUE/FALSE needed >> >> Check your script and see why it is NA. you might need: >> >> max(tt[2] - 10 * tol, nineq, na.rm=TRUE) >> >> If your data has NAs. >> >> On S

Re: [R] rsolnp- Error (Help!)

2009-09-28 Thread tushar_kul
et the same error: > >> if (1==1)1 > [1] 1 >> if (NA == 1) 1 > Error in if (NA == 1) 1 : missing value where TRUE/FALSE needed > > Check your script and see why it is NA. you might need: > > max(tt[2] - 10 * tol, nineq, na.rm=TRUE) > > If your data has NAs. &g

[R] rsolnp- Error (Help!)

2009-09-27 Thread tushar_kul
Hi I am relatively new to R and was trying to run an optimization problem using rsolnp. I am getting an error which seems to be not related to my construct of the optimization equations. Error in if (max(tt[2] - 10 * tol, nineq) <= 0) rho = 0 : missing value where TRUE/FALSE needed I have