Re: [R] survreg error

2007-06-26 Thread Roland Rau
Hi K,

Devarajan, Karthik wrote:
> Does anyone have any suggestions\thoughts 

Hard to say where the problem(s) originate(s). Why don't you provide 
commented, minimal, self-contained, reproducible code as is recommended 
on all messages on this mailing list?

This would make it much easier to track down where a problem could come 
from.

Best,
Roland

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] survreg error

2007-06-26 Thread Devarajan, Karthik
Hello,

I am using survreg for a simulation where data is randomly generated from a
Weibull distribution and the model parameters estimated. When this is
embedded within a loop and the process repeated for different datasets, the
program aborts after a few runs in most cases giving the following message:

Error in survreg.fit(X, Y, weights, offset, init = init, controlvals =
control,  : 
NA/NaN/Inf in foreign function call (arg 9)
In addition: Warning message:
no non-missing arguments to max; returning -Inf

I'm having similar problems when using the lognormal distribution as well.
Does anyone have any suggestions\thoughts on how to circumvent this issue?
I've tried a few things with setting the seed for the random generation
without success.

Thanks,
K


 



[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.