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

2018-03-20 Thread Ronald Geskus
Dear Raja, A Fine and Gray model can be fitted using the standard coxph function with weights that correct for right censoring and left truncation. Hence I guess any function that allows to perform stepwise regression with coxph should work. See e.g. my article in Biometrics https://doi.org/10.111

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

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

2018-03-18 Thread Raja, Dr. Edwin Amalraj
Dear All, I would like to use R function 'selectFGR' of fine gray model in competing risks model. I used the 'Melanoma' data in 'riskRegression' package. Some of the variables are factor. I get solution for full model but not in variable selection model. Any advice how to use factor vari