Re: [R] using survreg() in survival package with "long" data

2015-08-31 Thread Fox, John
Dear Terry, Thank you for the extended explanation -- it's helpful. Best, John From: Therneau, Terry M., Ph.D. [thern...@mayo.edu] Sent: August 31, 2015 9:56 AM To: r-help@r-project.org; Fox, John; Göran Broström Subject: Re: using survreg() in survival

Re: [R] using survreg() in survival package with "long" data

2015-08-31 Thread Therneau, Terry M., Ph.D.
On 08/30/2015 05:00 AM, r-help-requ...@r-project.org wrote: I'm unable to fit a parametric survival regression using survreg() in the survival package with data in "counting-process" ("long") form. To illustrate using a scaled-down problem with 10 subjects (with data placed on the web): As

Re: [R] using survreg() in survival package with "long" data

2015-08-30 Thread Fox, John
Fox, John Cc: r-help@r-project.org Subject: Re: [R] using survreg() in survival package with "long" data On 08/29/2015 11:56 PM, Fox, John wrote: > Dear Göran, > > Thank you for responding to my query; please see below: > >> -Original Message- From: R-help >&

Re: [R] using survreg() in survival package with "long" data

2015-08-30 Thread Göran Broström
survreg() in survival package with "long" data Dear John, I think you are missing that 'survreg' does not handle left truncated data. With that you should use the 'eha' package, for a PH model the function 'phreg', and for an AFT model the function 'aft

Re: [R] using survreg() in survival package with "long" data

2015-08-29 Thread Fox, John
Dear Göran, Thank you for responding to my query; please see below: > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Göran > Broström > Sent: August 29, 2015 3:59 PM > To: r-help@r-project.org > Subject: Re: [R] using survreg() i

Re: [R] using survreg() in survival package with "long" data

2015-08-29 Thread Göran Broström
Dear John, I think you are missing that 'survreg' does not handle left truncated data. With that you should use the 'eha' package, for a PH model the function 'phreg', and for an AFT model the function 'aftreg' (you didn't tell which model you want to fit). Your attempt with the 'survreg' functi

[R] using survreg() in survival package with "long" data

2015-08-29 Thread Fox, John
Dear list members, I'm unable to fit a parametric survival regression using survreg() in the survival package with data in "counting-process" ("long") form. To illustrate using a scaled-down problem with 10 subjects (with data placed on the web): --- snip > library(sur