I am starting to work on survival analysis using Cox regression.
Is there a formula or function (SAS; R) to figure out for a given number of sample sizes what would be the number of independent variables that can be studied (and vice versa)?
I also have a covariate that is time dependent. However, I could not find a function to calculate the sample size (cox regression) when there is a time dependent covariate in the model. Can I treat this variable as a time-independent covariate while calculating the sample size?
Thanks so much for your time.