Skip to content
Prev 18358 / 398503 Next

Error with nls

Dear Dominik,

It has been in my experience that with global variables sometimes it has to
be defined and initialized within the local module before the variables can
use to manipulate data from another source.

Something else came to mind with function g(t), there are times when the
space causes the operation to be read incorrectly, and it see it as, do "g"
then do "t" and not, do function g(t).

When combining modules sometimes you may have to check each module manually
to make sure that it's algorithm routine is functioning correctly. I have
been told some time ago by a wise person, do the mathematical operation
manually then, use a calculator, then, use a spreadsheet and finally enter
it into you code. Here is where you will have additional references to check
you result(s). Give it a try and let me know how you made out...

Regards,
Shawn

-----Original Message-----
From: 1-27206531-0-90000491 [mailto:domi at sun11.ukl.uni-freiburg.de]
Sent: Thursday, March 28, 2002 1:27 PM
To: Shawn Hornsby
Cc: r-help at stat.math.ethz.ch
Subject: RE: [R] Error with nls
On Wed, 27 Mar 2002, Shawn Hornsby wrote:

            
I
that
make
it.
In the origin, it was a compartment model with 6 compartments. Data was
available for every compartment. But of scientific interest are specially
the last 2 compartments, #5 and #6. The function g(t) is the approach to
fill compartment  5 via a forcing function. The parameters b4i and b40 and
k4 results from a fit of compartment 4. In my model of compartment 5 and 6
the parameters b40, b4i and k4 are like time constant covariables.
your
described
nlr
apply
-.
http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
Greetings,

Dominik


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._