fit-main function

Fit rcox model