Re: [R] restricted cubic spline in FGR function

2018-03-23 Thread Thomas Alexander Gerds
the problem is not in my package. you can probably see this with tracebach() rcs is from rms and FGR is just a wrapper for cmprsk it would be nice though to fix this and if you can I would be very happy to include your contribution in my package. "Raja, Dr. Edwin Amalraj" writes: > Dear Thoma

Re: [R] selectFGR - variable selection in fine gray model for competing risks

2018-03-19 Thread Thomas Alexander Gerds
Dear Raja the technical problem is that the function crrstep does not communicate the selected variables in a proper way. the function pec::selectFGR uses rownames(crrstep.fit$coefficients). the other problem is that I don't like and never use backward elemination -- so, I am not motivated to fix

Re: [R] behaviour of formula objects and environment inside functions

2013-03-21 Thread Thomas Alexander Gerds
n there is a typo in the formula. > > Knowing why you want the environment of a formula to be empty would > help answer your question. > > Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > >> -Original Message- From: r-help-boun...@r-project.org >> [ma

[R] behaviour of formula objects and environment inside functions

2013-03-20 Thread Thomas Alexander Gerds
Dear List I am looking for the recommended way to create a formula inside a function with an empty environment. I tried several versions (see below), and one of them seemed to work, but I dont understand why there is a difference between .GlobalEnv and the environment inside a function. I would be