[R] comparing two vectors

soham chakraborty soham_r at isical.ac.in
Thu Nov 29 14:28:08 CET 2012


Hello,
I am performing Newton Raphson iteration where the parameter vector which I
want to optimize is an *nx1* vector.
I am running a while loop which will continue unless a stopping condition is
satisfied
Now, the stopping condition will have to be such that the parameter vector
after two successive iterations are very close to each other,*component
wise*.
I have tried the* all* function, in which case the number of iterations are
enormous.
Is there any better way to do this?

Thanking all in advance,
Soham Chakraborty



--
View this message in context: http://r.789695.n4.nabble.com/comparing-two-vectors-tp4651282.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list