Thanks to both Brian and Goran for the suggestions. I've now added the
following
to the code:
# Round the survival times just a little. Otherwise unique() and
# table() can give a different list of unique times, and both are
# used in the subsequent routines. A test case with
On 07/21/2010 03:54 PM, Prof Brian Ripley wrote:
I believe this is a misdiagnosis: the 'rounding' is done by
as.character (as the help for argument 'levels' in ?factor does say)
and ?as.character has a full explanation (and is linked from the
relevant part of ?factor).
as.numeric(as.character())
On Jul 22, 2010, at 3:31 AM, Jan van der Laan wrote:
> Thomas, Simon,
>
> Thank you for your answers. I will have a look at the code Thomas gave
> me and probably also have another look at src/unix/sys-std.c. I'll get
> back when I have this working, or, more likely, when I can't get this
> to w
Hey folks,
I read plenty of material and started to write some new R-packages, but
actually I am looking for a solution of the following problem. Perhaps
it's a beginners question for creating packages, but I wasn't able to
track it down yet. Hopefully you can provide me with a solution or at
Thomas, Simon,
Thank you for your answers. I will have a look at the code Thomas gave
me and probably also have another look at src/unix/sys-std.c. I'll get
back when I have this working, or, more likely, when I can't get this
to work.
As for the example code. I know it is very fragile. I tried t