Re: [R] AFTREG with ID argument

2010-02-18 Thread Göran Broström
2010/2/18 Philipp Rappold : > Göran, David, > > in order to adapt aftreg to my needs I wrote a little function that I would > like to share with you and the community. I once promised to fix this 'asap'. Now I promise to do it tonight. OK? Göran > > > WHAT DOES IT FIX? > > (1) Using the id-argum

Re: [R] AFTREG with ID argument

2010-02-18 Thread Philipp Rappold
Göran, no worries - your help & advice is already invaluable! Göran Broström wrote: 2010/2/18 Philipp Rappold : Göran, David, in order to adapt aftreg to my needs I wrote a little function that I would like to share with you and the community. I once promised to fix this 'asap'. Now I promis

Re: [R] AFTREG with ID argument

2010-02-18 Thread Philipp Rappold
Göran, David, in order to adapt aftreg to my needs I wrote a little function that I would like to share with you and the community. WHAT DOES IT FIX? (1) Using the id-argument in combination with missing values on covariates wasn't easily possible before because the id-dataframe and the da

Re: [R] AFTREG with ID argument

2010-02-11 Thread David Winsemius
On Feb 11, 2010, at 5:58 AM, Philipp Rappold wrote: Göran, thanks! One more thing that I found: As soon as you have at least one NA in the independent vars, the trick that you mentioned does not work anymore. Example: > testdata start stop censor groupvar var1 1 01 0

Re: [R] AFTREG with ID argument

2010-02-11 Thread Philipp Rappold
Göran, thanks! One more thing that I found: As soon as you have at least one NA in the independent vars, the trick that you mentioned does not work anymore. Example: > testdata start stop censor groupvar var1 1 01 01 0.1284928 2 12 01 0.4896125

Re: [R] AFTREG with ID argument

2010-02-05 Thread Göran Broström
On Fri, Feb 5, 2010 at 11:30 AM, Philipp Rappold wrote: > Dear all, > > I have some trouble using the "id"-argument with aftreg (accelerated failure > time regression analysis from the eha library). > > As far as I understand it, the id argument is used to group individuals > together if there are

Re: [R] AFTREG with ID argument

2010-02-05 Thread Philipp Rappold
Dimitris, thanks for the hint, I'll definitely give it a shot later. But for now it would be great to understand the aftreg arguments first :) All the best Philipp Dimitris Rizopoulos wrote: In case this time-dependent covariate is an internal time-dependent covariate (aka endogenous time-d

Re: [R] AFTREG with ID argument

2010-02-05 Thread Dimitris Rizopoulos
In case this time-dependent covariate is an internal time-dependent covariate (aka endogenous time-dependent covariate), you can use the jointModel() function from package JM, with the option "weibull-AFT-GH" for the 'method' argument. For more information you may have a look at: http://rwiki

[R] AFTREG with ID argument

2010-02-05 Thread Philipp Rappold
Dear all, I have some trouble using the "id"-argument with aftreg (accelerated failure time regression analysis from the eha library). As far as I understand it, the id argument is used to group individuals together if there are time-varying covariates and the data is arranged in counting pr