Re: [R] Relsurv package

2010-11-02 Thread David Winsemius
On Nov 2, 2010, at 12:29 PM, Laurence Lauvier wrote: Hello, I have a question about relsurv package particularly rsadd function: Rsadd(Surv(time,cens)~sex + ratetable (age = age *365.24,sex=sex,year=year),data=,=ratetable=,int=5,method=”max.lik”). In the tutorial, it is indicated that "t

[R] Relsurv package

2010-11-02 Thread Laurence Lauvier
Hello, I have a question about relsurv package particularly rsadd function: Rsadd(Surv(time,cens)~sex+ratetable(age=age*365.24,sex=sex,year=year),data=,=ratetable=,int=5,method=”max.lik”). In the tutorial, it is indicated that "the age and year must be given in the date format, i.e. in number

Re: [R] relsurv package

2010-10-29 Thread Laurence Lauvier
Hello, I have a question about relsurv package particularly rsadd function: Rsadd(Surv(time,cens)~sex+ratetable(age=age*365.24,sex=sex,year=year),data=,=ratetable=,int=5,method=”max.lik”). In the tutorial, it is indicated that "the age and year must be given in the date format, i.e. in number of d

Re: [R] relsurv package

2008-09-11 Thread Prof Brian Ripley
ati <[EMAIL PROTECTED]>; r-help@r-project.org Sent: Wednesday, September 10, 2008 11:44:43 AM Subject: Re: [R] relsurv package On Wed, 10 Sep 2008, Yihui Xie wrote: > For the second question, try something like: > >> strptime('12/4/1996','%M/%d/%Y') >

Re: [R] relsurv package

2008-09-11 Thread Giulia Barbati
ls ? Giulia - Original Message From: Prof Brian Ripley <[EMAIL PROTECTED]> To: Yihui Xie <[EMAIL PROTECTED]> Cc: Giulia Barbati <[EMAIL PROTECTED]>; r-help@r-project.org Sent: Wednesday, September 10, 2008 11:44:43 AM Subject: Re: [R] relsurv package On Wed, 10 Sep 2008,

Re: [R] relsurv package

2008-09-10 Thread Prof Brian Ripley
On Wed, 10 Sep 2008, Yihui Xie wrote: For the second question, try something like: strptime('12/4/1996','%M/%d/%Y') [1] "1996-09-04 00:12:00" # only date? as.Date(strptime('12/4/1996','%M/%d/%Y')) [1] "1996-09-04" Why not as.Date('12/4/1996', format = '%m/%d/%Y') [1] "1996-12-04" ? (A

Re: [R] relsurv package

2008-09-10 Thread Yihui Xie
For the second question, try something like: > strptime('12/4/1996','%M/%d/%Y') [1] "1996-09-04 00:12:00" # only date? > as.Date(strptime('12/4/1996','%M/%d/%Y')) [1] "1996-09-04" Yihui On Wed, Sep 10, 2008 at 4:22 PM, Giulia Barbati <[EMAIL PROTECTED]> wrote: > > Dear R-users, > > I have a coup

Re: [R] relsurv package

2008-09-10 Thread Giulia Barbati
Dear R-users, I have a couple of questions about the relsurv package: 1) when I try to run the example: fit <- rsmul(Surv(time,cens)~sex+as.factor(agegr)+ratetable(age=age*365.24,sex=sex,year=year),ratetable=slopop,data=rdata) with the datasets in the package (rdata and slopop) it gives me