01 January 1970 6 181 Report

Dear Collegaues,

I hope all is well.

Thank you very much for your help

I am used to STATA and very new to using R package.

STATA has lasso inference for linear and logistic regression. However, it doesnt have LASSO features for cox regression.

I wonder if I can use R to do LASSO inference for cox regression model?

I am literally very new to R and would appreciate if you can help me do syntax in R for my model.

I am sorry that I am very Naive in R

If I am using STATA, I would do the following to produce the cox model:

1)stset PTIME, failure(PSTATUS)

2)stcox i.sex BMI_TCR COLD_ISCH_KI SERUM_CREAT END_CPRA i.ETHCAT AGE AMIS BMIS i.STEROIDS_MAINT AGE_DON i.DIAB i.dgf

3)estat phtest (to test proportional hazard assumptions)

I wonder what is the syntax to do the same in R ?

Also, what are the syntaxes to use this model to perform LASSO inference for cox harazrd regression?

Finally how to do the post-estimation tests after fitting in the LASSO inference for cox harard regression?

Thank you vey much for your help

Looking forward to hearing back from you

More Hatem Ali's questions See All
Similar questions and discussions