[R] Algorithm = "port" convergence codes

2008-10-07 Thread Nakamura
Hello all, I am fitting a Gamma distribution to some data I have using nls(). The function obviously runs into issues when using a 0 as a parameter value. I understand the line alg = "port" can be used to set the lower bounds to prevent this from happening. When I run the code I get the following

Re: [R] Labelling a secondary axis in R

2008-04-22 Thread Nakamura
t; for the secondary axis, which is currently entitled as "c(-100,200)". > Obviously this isn't very useful. > > I will put some reproducible code on the post when it updates. > > Thanks, > Rob > > On Apr 21 2008, Duncan Murdoch wrote: > >>On 4

[R] Labelling a secondary axis in R

2008-04-21 Thread Nakamura
Hello, How can I label a secondary axis in R? At the moment it's labelled as c(-100,200). Obviously I would like it to be more sensible. Here is the code I am using newx = -100+37.5*((1:9)-1) axis(4,at=newx,labels=(newx+100)/3750) Thanks, Rob -- View this message in context: http://www.nabb

Re: [R] Catching NaNs from pweibull()

2008-02-08 Thread Nakamura
Hello Ben, Ok this is going to sound very bizare, but the code now works. I struggled for a long time to see why it was returning NaN values. I'm sure the code is exactly the same. But anyway it now seems to be working (for the time being). Thanks for the input though. Regards, Rob -- View

[R] Catching NaNs from pweibull()

2008-02-08 Thread Nakamura
Hello, I am working with the nls() function and inserting a formula into it that use the pweibull function. However the pweibull function is annoyingly producing NaNs, which nls() refuses to handle. I have put a sample of the code below. Is there a way to prevent these NaNs from interfering, for