Displaying 2 results from an estimated 2 matches for "tp3633638p3634100".
2011 Jun 29
2
optimization in for loop
Hi, dear R help
I am trying to use optim inside a for loop:
##For example. a: intial guess. b: result. f: function to be minimized
for (i in 1:10) {
b[i] <- optim(a[i], f)}
However, some intial values cause error in optim function (e.g. " system is
computationally singular..."). Then the for loop stops and won't try the
following initial guesses.
What can I do if I want
2011 Jun 30
0
help with interpreting what nnet() output gives:
...tion in for loop
Message-ID: <1309384021241-3634100.post at n4.nabble.com>
Content-Type: text/plain; charset=us-ascii
Thankyou very much. I think "try" works for me.
I am learning it .
Sirius
--
View this message in context: http://r.789695.n4.nabble.com/optimization-in-for-loop-tp3633638p3634100.html
Sent from the R help mailing list archive at Nabble.com.
------------------------------
Message: 85
Date: Wed, 29 Jun 2011 23:54:39 +0200
From: Trying To learn again <tryingtolearnagain at gmail.com>
To: r-help at r-project.org
Subject: Re: [R] Executing a script "hand-made"...