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
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
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
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')
>
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,
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
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
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
8 matches
Mail list logo