To analyse discrete time cox PH (including time varying covariates), the following R function can be used: glm (family = binomial, link = "cloglog")
Since there is no open formula for calculating the sample size for discrete time cox PH, 1. I was wondering whether I could compute the sample size for a multiple logistic regression model instead.
2. When calculating the sample size for survival analysis, we refer to the number of events (rather than total participants), whereas in logistic regression, the calculated N refers to the number of participants. Am I correct?